summaryrefslogtreecommitdiff
path: root/lib/transaction.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-06-15 04:56:33 +0000
committerjbj <devnull@localhost>2001-06-15 04:56:33 +0000
commitf0d2abd2bcb74ab18645355ba45189abe77f38bf (patch)
treecfa580201935a10cf034c1a1655fda810205d74e /lib/transaction.c
parent22b9de5f331285fef6b353b9441d121dcc639ea2 (diff)
downloadlibrpm-tizen-f0d2abd2bcb74ab18645355ba45189abe77f38bf.tar.gz
librpm-tizen-f0d2abd2bcb74ab18645355ba45189abe77f38bf.tar.bz2
librpm-tizen-f0d2abd2bcb74ab18645355ba45189abe77f38bf.zip
- fix: db1 end-of-file not detected in legacy compatible way.
- fix: remove (harmless) chown error message from %post. - add --target/--host to %configure, add example cross-build/config.site scripts to /usr/lib/rpm <arjanv@redhat.com> (#44581). - rpmdb iterator selectors permit default/strcmp/regex/glob matching. - rpmdb iterator selectors permit negative matches. CVS patchset: 4861 CVS date: 2001/06/15 04:56:33
Diffstat (limited to 'lib/transaction.c')
-rw-r--r--lib/transaction.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/transaction.c b/lib/transaction.c
index da80a78bb..4b5d307a3 100644
--- a/lib/transaction.c
+++ b/lib/transaction.c
@@ -1650,13 +1650,11 @@ int rpmRunTransactions( rpmTransactionSet ts,
if (!(ts->ignoreSet & RPMPROB_FILTER_REPLACEPKG) && !alp->multiLib) {
rpmdbMatchIterator mi;
mi = rpmdbInitIterator(ts->rpmdb, RPMTAG_NAME, alp->name, 0);
-#ifdef DYING
- (void) rpmdbSetIteratorVersion(mi, alp->version);
- (void) rpmdbSetIteratorRelease(mi, alp->release);
-#else
- (void) rpmdbSetIteratorRE(mi, RPMTAG_VERSION, alp->version);
- (void) rpmdbSetIteratorRE(mi, RPMTAG_RELEASE, alp->release);
-#endif
+ (void) rpmdbSetIteratorRE(mi, RPMTAG_VERSION,
+ RPMMIRE_DEFAULT, alp->version);
+ (void) rpmdbSetIteratorRE(mi, RPMTAG_RELEASE,
+ RPMMIRE_DEFAULT, alp->release);
+
while (rpmdbNextIterator(mi) != NULL) {
psAppend(ts->probs, RPMPROB_PKG_INSTALLED, alp,
NULL, NULL, NULL, 0);