|
Bugzilla – Full Text Bug Listing |
| Summary: | community repositoriy not selected if called by yast2 piwo | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.0 | Reporter: | Thomas Göttlicher <tgoettlicher> |
| Component: | YaST2 | Assignee: | J. Daniel Schmidt <jdsn> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | coolo, jdsn, locilka, lslezak, tgoettlicher |
| Version: | RC 1 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
screenshot
Patch for inst_suse_register.ycp YaST log from piwo run patch for inst_suse_register.ycp |
||
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 |
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.