2006-12-19 00:17:44 +01:00
|
|
|
Also test architecture in "refresh" test when not colored. This allows
|
2011-05-16 18:07:44 +02:00
|
|
|
updates to different architectures.
|
2006-12-19 00:17:44 +01:00
|
|
|
|
2012-08-28 15:31:44 +02:00
|
|
|
--- ./lib/psm.c.orig 2012-03-20 08:07:25.000000000 +0000
|
|
|
|
+++ ./lib/psm.c 2012-06-01 10:22:24.000000000 +0000
|
|
|
|
@@ -680,13 +680,14 @@ void rpmpsmNotify(rpmpsm psm, int what,
|
|
|
|
*/
|
|
|
|
static void markReplacedInstance(rpmts ts, rpmte te)
|
|
|
|
{
|
|
|
|
+ /* this must match rpmNameVersionCompare in depends.c */
|
|
|
|
rpmdbMatchIterator mi = rpmtsInitIterator(ts, RPMDBI_NAME, rpmteN(te), 0);
|
|
|
|
rpmdbSetIteratorRE(mi, RPMTAG_EPOCH, RPMMIRE_STRCMP, rpmteE(te));
|
|
|
|
rpmdbSetIteratorRE(mi, RPMTAG_VERSION, RPMMIRE_STRCMP, rpmteV(te));
|
|
|
|
rpmdbSetIteratorRE(mi, RPMTAG_RELEASE, RPMMIRE_STRCMP, rpmteR(te));
|
|
|
|
+ rpmdbSetIteratorRE(mi, RPMTAG_ARCH, RPMMIRE_STRCMP, rpmteA(te));
|
|
|
|
/* XXX shouldn't we also do this on colorless transactions? */
|
|
|
|
if (rpmtsColor(ts)) {
|
|
|
|
- rpmdbSetIteratorRE(mi, RPMTAG_ARCH, RPMMIRE_STRCMP, rpmteA(te));
|
|
|
|
rpmdbSetIteratorRE(mi, RPMTAG_OS, RPMMIRE_STRCMP, rpmteO(te));
|
|
|
|
}
|
2009-08-28 15:54:03 +02:00
|
|
|
|