Bug 1227126 - Fix "zypper ls service" to allow testing whether the service exists
Summary: Fix "zypper ls service" to allow testing whether the service exists
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: libzypp (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-27 10:42 UTC by Michael Andres
Modified: 2024-06-27 11:21 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.