[Bug 369827] New: zypper should get repository priority support
https://bugzilla.novell.com/show_bug.cgi?id=369827 Summary: zypper should get repository priority support Product: openSUSE 11.0 Version: Alpha 2plus Platform: All OS/Version: Linux Status: NEW Severity: Enhancement Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jengelh@gmx.de QAContact: qa@suse.de Found By: Beta-Customer In smart, one can give repositories a priority with which it is possible to select packages in a preferred order. I would like to see this in zypper too. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=369827
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=369827
Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=369827
User ma@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369827#c2
Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=369827
User lrupp@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369827#c4
Lars Vogdt
repo priority is supported in libzypp-4.6.1, by adding a line 'priority=N' to the .repo file. Where N is an integer number from 1 (highest prio) to 99 (least and default).
Why is the last possible prio the default? Wouldn't this make things more complicated if a user wants to "downrate" an existing repo instead of "uprating" all others? I would suggest to use a default value of 50 ... :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=369827
User jengelh@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=369827#c5
--- Comment #5 from Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=369827
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369827#c7
--- Comment #7 from Ján Kupec
(In reply to comment #2 from Michael Andres)
repo priority is supported in libzypp-4.6.1, by adding a line 'priority=N' to the .repo file. Where N is an integer number from 1 (highest prio) to 99 (least and default).
Why is the last possible prio the default?
i guess because of yum: http://wiki.centos.org/PackageManagement/Yum/Priorities
Wouldn't this make things more complicated if a user wants to "downrate" an existing repo instead of "uprating" all others?
sure
I would suggest to use a default value of 50 ... :-)
Hm. I like this idea, i will ask for opinions on zypp-devel. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=369827
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369827#c8
Ján Kupec
@Jano: You probably want to add support for this in zypper.
--priority added to the modifyrepo command. To be in zypper 0.10.5. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=369827
User jengelh@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=369827#c9
--- Comment #9 from Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=369827
User cmorve69@yahoo.es added comment
https://bugzilla.novell.com/show_bug.cgi?id=369827#c10
Christian Morales Vega
https://bugzilla.novell.com/show_bug.cgi?id=369827
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369827#c11
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=369827
User sndirsch@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369827#c12
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=369827
User jengelh@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=369827#c13
--- Comment #13 from Jan Engelhardt
zypper priority is only used if the packages in the repos have exactly the same version and release number?
That should be a distinct feature. Given: [a] name = example repository with aaa_base-10.2, ssh-4.5 priority = 2 [b] name = example repository with aaa_base-10.3, ssh-4.4 priority = 1 Expected result with repository priority (what I want): System has installed base-10.2 with ssh-4.5 after "upgrade" operation. Expected result with package priorities (what you seem to suggest): System has installed base-10.3 with ssh-4.5 after "upgrade" operation. Ok? :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=369827
User cmorve69@yahoo.es added comment
https://bugzilla.novell.com/show_bug.cgi?id=369827#c14
--- Comment #14 from Christian Morales Vega
zypper priority is only used if the packages in the repos have exactly the same version and release number?
I can understand the same version thing, but same release number??? a) If so I don't think it would *never* apply. b) Release numbers have little meaning. Packman uses his own releases, and OBS packagers normally just let the system select the release number so "bad" packagers have higher release numbers just because they make more mistakes. If someone is interested "what I want" is: - Packages are always updated only from the same repository from where the old version was installed. - Dependencies (packages selected automatically) are selected looking *first* at repository priorities. Pros: - This way I don't need package priorities (that from Smart experience, can end in a pretty long list). I know packages will be always updated from the repository I selected when installing them. And if I want to change the "priority" of a package I only need to install manually the version from the repository I want. I think is the easier way to manage updates with a lot of repos. Cons: - Must be made an expection for the updates repository. If a package is installed from the official openSUSE repo it can be updated from opensuse-updates repo. - The information about the repository from where a package was installed must be stored somewhere. When a repository has an update, the old/installed version isn't from that repository anymore. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=369827
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369827#c15
--- Comment #15 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=369827
Jan Engelhardt
participants (1)
-
bugzilla_noreply@novell.com