This functionality is already implemented, though not used since FC3.
The values involved are carried in the transaction (lib/rpmts.c:1502)
ts->color = rpmExpandNumeric("%{?_transaction_color}"); ts->prefcolor = rpmExpandNumeric("%{?_prefer_color}"); if (!ts->prefcolor) ts->prefcolor = 0x2;
Your "last installed" policy MUST take color into account because it makes little sense to arbitrarily replace ELF32 with ELF64
This functionality is already implemented, though not used since FC3.
The values involved are carried in the transaction (lib/rpmts.c:1502)
ts->color = rpmExpandNumeri c("%{?_ transaction_ color}" ); c("%{?_ prefer_ color}" );
ts->prefcolor = rpmExpandNumeri
if (!ts->prefcolor) ts->prefcolor = 0x2;
Your "last installed" policy MUST take color into account
because it makes little sense to arbitrarily replace ELF32
with ELF64