Bug 435724

Summary: pkg-bindings miss functions to administer services
Product: [openSUSE] openSUSE 11.1 Reporter: J. Daniel Schmidt <jdsn>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None CC: ma
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description J. Daniel Schmidt 2008-10-15 16:26:32 UTC
Since the backend of the registration changed quite late for Code11 now YaST has to deal with the changes to the repositories.

One usecase of this is to flag repos in a service as "to disable" or "to enable".
This is missing in the pkg-bindings currently.
Btw. zypper supports this already (if you want to have a look how this works) but during installation the registration should not use external calls to call zypper IMHO.


Another point:
The documentation for the services says that a refresh is only possible when the service is already saved to the system. But there is no ServiceSave() function to do this.


Lado, can you please have a look at the pkg-bindings and add this functionality.
Comment 1 Ladislav Slezák 2008-10-16 09:03:48 UTC
Use Pkg::SourceSaveAll() for saving services, see bug #435669.
Comment 2 Ladislav Slezák 2008-10-17 14:31:35 UTC
There is Pkg::ServiceSave() function in yast2-pkg-bindings-2.17.20.

Use Pkg::ServiceSet()/Get() to set/get ReposToEnable/Disable.