Bugzilla – Bug 395333
community repositoriy not selected if called by yast2 piwo
Last modified: 2020-10-27 10:10:53 UTC
Created attachment 218818 [details] screenshot The list of community repositories hasn't any items selected when called by 'yast2 piwo' even though repos are added to the system.
Created attachment 218821 [details] Patch for inst_suse_register.ycp Registration has to call Pkg::SourceRestore(); before registering a new source.
Created attachment 218822 [details] YaST log from piwo run See the log file registration: Pkg Builtin called: SourceGetCurrent Current sources: [0, 1, 3, 4, 5] Registers a new source (update) Current sources: [1, 3, 4, 5, 6] Pkg Builtin called: SourceFinishAll Pkg Builtin called: TargetFinish comrepos: Pkg Builtin called: TargetInitialize Pkg Builtin called: SourceRestore --> error Source_Load.cc(SourceRestore):57 Number of registered repositories: 7, skipping repository load! (But sources are already finished) --> error Current sources: [] This seems to be error in package bindings
Daniel, please, fix registration (patch) and reassign to lslezak.
fixed in registration, will be submitted in a minute lslezak, please take over for the other half
Created attachment 218906 [details] patch for inst_suse_register.ycp The problem is that inst_suse_register.ycp calls Pkg::SourceFinishAll() which saves and _disables_ all sources. It should call Pkg::SourceSaveAll() instead - it's similar to SourceFinishAll() but it doesn't disable sources. Repositories are then displayed with the correct state.
I've tested the patches. Works fine, thanks! Who submits a package while jdsn is on vacation?
I can do that...
- Lslezak's patch for inst_suse_register to save all sources but not to disable them (bnc #395333). - yast2-registration-2.16.6
This is an autogenerated message for OBS integration: This bug (395333) was mentioned in https://build.opensuse.org/request/show/844234 Factory / yast2-registration