[Bug 498266] New: Change of repo priority from Configuration - Repositories in Software Management requires restart of Software Management
http://bugzilla.novell.com/show_bug.cgi?id=498266 Summary: Change of repo priority from Configuration - Repositories in Software Management requires restart of Software Management Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: rajko@opensuse.org QAContact: jsrain@novell.com Found By: Community User Background: Many users installed KDE 4.2.2 using 1-click install, which ads repo with priority 99. When comes time for update there is nothing to find. Check in YaST software management shows available version 4.1.3. Problem is that update repo is priority 20 and masks repo with priority 99. Workaround is to set KDE repo to 20 and then whatever version is newer will win. Problem is that changing repo priority from Configuration -> Repositories in Software Management requires restart of Software Management in order to see effects of new settings, which defeats purpose of having access to change repositories from Software Management, To reproduce: 1. Start Software Management 2. Go to Configuration -> Repositories change priority 3. Refresh all enabled; not sure is it necessary, but I do that regularly 4. Go back to Software Management and check Available Version What happens: The version is still the same. Restart Software Management and all is OK, there is no more "updates" with version 4.1.3, but 4.2.2-(build) if available. It is expected: That there is no need to restart Software Management, after changes in repository management module. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=498266
Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=498266
Steffen Winterfeldt
http://bugzilla.novell.com/show_bug.cgi?id=498266
User lslezak@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=498266#c1
Ladislav Slezak
http://bugzilla.novell.com/show_bug.cgi?id=498266
User schubi@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=498266#c2
Stefan Schubert
http://bugzilla.novell.com/show_bug.cgi?id=498266
User ma@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=498266#c3
Michael Andres
Stefan, is it possible to change the priority of a repository at runtime? How can I tell the solver that a priority has been changed?
Since libzypp-6.19.1 (11.2) / libzypp-5.30.15 (11.1) it's sufficient to take the repositories RepoInfo, adjust the priority and set the new Repoinfo again: sat::Pool satpool( sat::Pool::instance() ); Repository r( satpool.reposFind( "repo-oss" ) ); RepoInfo ri( r.info() ); ri.setPriority( 20 ); r.setInfo( ri ); The above changes the priority of the repo in memory only. To change the .repo file on disk, you still have to call RepoManager::modifyRepository. NOTE: Repo priority is also used as a sort key within the ui::Selectable. So you better reload any Selectables you stored from the pool. Selectables created before the change will contain candidate lists sorted with respect to the old priority values. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=498266
User lslezak@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=498266#c4
Ladislav Slezak
http://bugzilla.novell.com/show_bug.cgi?id=498266
User ma@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=498266#c5
Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=498266
User swamp@suse.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=498266#c8
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=498266
User swamp@suse.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=498266#c9
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=498266
http://bugzilla.novell.com/show_bug.cgi?id=498266#c
Ladislav Slezak
http://bugzilla.novell.com/show_bug.cgi?id=498266
http://bugzilla.novell.com/show_bug.cgi?id=498266#c10
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=498266
http://bugzilla.novell.com/show_bug.cgi?id=498266#c11
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=498266
http://bugzilla.novell.com/show_bug.cgi?id=498266#c12
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=498266
http://bugzilla.novell.com/show_bug.cgi?id=498266#c13
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com