Bugzilla – Bug 1227126
Fix "zypper ls service" to allow testing whether the service exists
Last modified: 2024-06-27 11:21:44 UTC
One can use "zypper lr NAME" to test whether a repo named NAME exists. Unfortunately this does not work for services, but IMO it should. If this was fixed in zypper, the openSUSE-repos-* packages could do "zypper ls openSUSE || zypper as ... openSUSE". This would add (and enable) the service only if it does not exist. A disabled service would stay disabled.