Bug 1227126

Summary: Fix "zypper ls service" to allow testing whether the service exists
Product: [openSUSE] openSUSE Tumbleweed Reporter: Michael Andres <ma>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: roger.whittaker
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael Andres 2024-06-27 10:42:03 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.