How to set a generic lock flag?

Anders F Björklund afb at algonet.se
Mon Aug 30 00:11:46 PDT 2010


Space Case wrote:

>> I have an x86_64 system, and smart keeps wanting to install i586
>> packages.  How do I set a generic lock flag that will do the
>> equivalent of *@i586?
>
> Forgot to mention: running smart 1.3 on suse factory (pre-11.4).

I don't think locks are the feature that you are looking for.
(As those are typically set by package name, and not generic.)

Can you give some example where Smart prefers @i586 packages
over @x86_64 ones ? They are supposed to be sorted correctly.


You can also check rpm.archscore directly. Except for zero
(which means incompatible), lower archscores are preferred...

$ python
 >>> import rpm
 >>> rpm.archscore("x86_64")
1
 >>> rpm.archscore("noarch")
2
 >>> rpm.archscore("i586")
5
 >>> rpm.archscore("i386")
7
 >>> rpm.archscore("ppc")
0

--anders




More information about the Smart mailing list