[zypp-devel] Setting priority in PackageKit libzypp backend
Hi all, I'm using PackageKit as the backend in WebYaST repository management module. I found a problem when setting repository priory higher than 99: the libzypp backend accepts priority only in range 1-99. Because 99 is the default, it's not possible to decrease priority of a repository by setting the priority to 100 (or higher). Is that a bug? I think so. (A workaround is to set higher priorities for all other repositories, but that's confusing for users and breaks when a new repository with default priority is added.) I'll fix that by myself (I have already extended the backend to make repository management possible, no problem with that), I just want to be sure that it's a bug and there is no special reason for that limit. -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Thursday 08 April 2010 16:18:30 Ladislav Slezak wrote:
I'll fix that by myself (I have already extended the backend to make repository management possible, no problem with that), I just want to be sure that it's a bug and there is no special reason for that limit.
It's just that AFAIK YUM specified 1-99 as legal priority for the .repo files. But libzypp does not implement this limit. You can use any unsigned number. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Dne 8.4.2010 17:14, Michael Andres napsal(a): [...]
It's just that AFAIK YUM specified 1-99 as legal priority for the .repo files. But libzypp does not implement this limit. You can use any unsigned number.
Thanks for the info, I'll change the range to 1-200 so it's easy to lower priority of a repo and still have reasonable values. -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Friday 09 April 2010 10:44:52 Ladislav Slezak wrote:
Dne 8.4.2010 17:14, Michael Andres napsal(a): [...]
It's just that AFAIK YUM specified 1-99 as legal priority for the .repo files. But libzypp does not implement this limit. You can use any unsigned number.
Thanks for the info, I'll change the range to 1-200 so it's easy to lower priority of a repo and still have reasonable values.
Just curious: Why do you want to set a lower limit at all? -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Dne 9.4.2010 10:55, Michael Andres napsal(a):
It's just that AFAIK YUM specified 1-99 as legal priority for the .repo files. But libzypp does not implement this limit. You can use any unsigned number.
Thanks for the info, I'll change the range to 1-200 so it's easy to lower priority of a repo and still have reasonable values.
Just curious: Why do you want to set a lower limit at all?
I'd like to have the same range in WebYaST as in the standard YaST. It should be consistent. Anyway, I found out that this feature (priority setting) is not needed in WebYaST right now, so I'm postponing this change... -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (2)
-
Ladislav Slezak
-
Michael Andres