On Monday 06 April 2009 13:15:56 Klaus Kaempf wrote:
* Michael Schroeder
[Apr 06. 2009 13:06]: On Mon, Apr 06, 2009 at 12:50:06PM +0200, Duncan Mac-Vicar Prett wrote:
Michael Schroeder wrote:
This is why the suggestion can't work. There is no way to find out
where an installed package came from.
rpm -q --queryformat="%{DISTURL}" zypper
obs://build.opensuse.org/zypp:Head/openSUSE_Factory/e395d196158db724d7f 40fa6310f2fd1-zypper
rpm -q --queryformat="%{DISTURL}" kde4-amarok
obs://build.opensuse.org/openSUSE:Factory/standard/42ce80031cf6bdae22d0 4696fa188a3b-kde4-amarok
Those strings don't identify repositories, they identify where the packages have been built.
Isn't that (combined with the package checksum) what counts in the end ?
But it's limited to the buildservice. And in this case it may be easier to enforce creation of different vendor strings for the different buildservice repos. Then those obs repos would immediately be usable as low-prio repo. But vendor is not the best attribute to use for this, because it's not under control of the local user. It's a weak relation based on a convention the package builder has to follow. And some more assumptions, like 'no other repo uses the same vendor string too'. So if we really want to put effort into this, we should head for a 'installed package <> repo alias'. This is something the local user can controll. -- 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