summaryrefslogtreecommitdiff
path: root/rpmdb
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-08-20 14:56:37 +0000
committerjbj <devnull@localhost>2002-08-20 14:56:37 +0000
commit46d1fa7527073148293e8a49ed13c80043758dae (patch)
tree96a142f3de17b6aa345bd429ee3fbd882814fb3f /rpmdb
parentfb8ced897951d9376c10e2121eded06ec81e0599 (diff)
downloadlibrpm-tizen-46d1fa7527073148293e8a49ed13c80043758dae.tar.gz
librpm-tizen-46d1fa7527073148293e8a49ed13c80043758dae.tar.bz2
librpm-tizen-46d1fa7527073148293e8a49ed13c80043758dae.zip
- fix: add epoch to "already installed" check.
CVS patchset: 5650 CVS date: 2002/08/20 14:56:37
Diffstat (limited to 'rpmdb')
-rw-r--r--rpmdb/rpmdb.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c
index f9ebd5391..87b37eea0 100644
--- a/rpmdb/rpmdb.c
+++ b/rpmdb/rpmdb.c
@@ -2000,6 +2000,7 @@ static int mireSkip (const rpmdbMatchIterator mi)
rpmTagType t;
int_32 c;
miRE mire;
+ static int_32 zero = 0;
int ntags = 0;
int nmatches = 0;
int i, j;
@@ -2017,8 +2018,13 @@ static int mireSkip (const rpmdbMatchIterator mi)
for (i = 0; i < mi->mi_nre; i++, mire++) {
int anymatch;
- if (!hge(mi->mi_h, mire->tag, &t, (void **)&u, &c))
- continue;
+ if (!hge(mi->mi_h, mire->tag, &t, (void **)&u, &c)) {
+ if (mire->tag != RPMTAG_EPOCH)
+ continue;
+ t = RPM_INT32_TYPE;
+ u.i32p = &zero;
+ c = 1;
+ }
anymatch = 0; /* no matches yet */
while (1) {