2006-12-19 00:17:44 +01:00
|
|
|
Also test architecture in "refresh" test when not colored. This allows
|
2011-05-18 17:08:31 +02:00
|
|
|
updates to different architectures.
|
2006-12-19 00:17:44 +01:00
|
|
|
|
2011-05-18 17:08:31 +02:00
|
|
|
--- ./lib/psm.c.orig 2010-12-21 09:50:23.000000000 +0000
|
|
|
|
+++ ./lib/psm.c 2011-05-11 12:47:13.000000000 +0000
|
|
|
|
@@ -723,6 +723,7 @@ static rpmRC rpmpsmStage(rpmpsm psm, pkg
|
2009-08-28 15:54:03 +02:00
|
|
|
|
|
|
|
psm->scriptArg = psm->npkgs_installed + 1;
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
+ /* this must match rpmNameVersionCompare in depends.c */
|
2011-05-18 17:08:31 +02:00
|
|
|
mi = rpmtsInitIterator(ts, RPMDBI_NAME, rpmteN(psm->te), 0);
|
2009-08-28 15:54:03 +02:00
|
|
|
xx = rpmdbSetIteratorRE(mi, RPMTAG_EPOCH, RPMMIRE_STRCMP,
|
2006-12-19 00:17:44 +01:00
|
|
|
rpmteE(psm->te));
|
2011-05-18 17:08:31 +02:00
|
|
|
@@ -730,9 +731,9 @@ static rpmRC rpmpsmStage(rpmpsm psm, pkg
|
2006-12-19 00:17:44 +01:00
|
|
|
rpmteV(psm->te));
|
2009-08-28 15:54:03 +02:00
|
|
|
xx = rpmdbSetIteratorRE(mi, RPMTAG_RELEASE, RPMMIRE_STRCMP,
|
2006-12-19 00:17:44 +01:00
|
|
|
rpmteR(psm->te));
|
2009-08-28 15:54:03 +02:00
|
|
|
+ xx = rpmdbSetIteratorRE(mi, RPMTAG_ARCH, RPMMIRE_STRCMP,
|
|
|
|
+ rpmteA(psm->te));
|
|
|
|
if (tscolor) {
|
|
|
|
- xx = rpmdbSetIteratorRE(mi, RPMTAG_ARCH, RPMMIRE_STRCMP,
|
|
|
|
- rpmteA(psm->te));
|
|
|
|
xx = rpmdbSetIteratorRE(mi, RPMTAG_OS, RPMMIRE_STRCMP,
|
2006-12-19 00:17:44 +01:00
|
|
|
rpmteO(psm->te));
|
|
|
|
}
|