summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewt <devnull@localhost>1999-03-31 22:19:00 +0000
committerewt <devnull@localhost>1999-03-31 22:19:00 +0000
commit4111caf5e8a6efca00949068fd5bc2c5d370ee0d (patch)
treea8ff3f78724bbd9fef69577aa2233c7bf1307757
parent5fbc0dd6c39f033ca0cd3a6975f1195b94f113db (diff)
downloadlibrpm-tizen-4111caf5e8a6efca00949068fd5bc2c5d370ee0d.tar.gz
librpm-tizen-4111caf5e8a6efca00949068fd5bc2c5d370ee0d.tar.bz2
librpm-tizen-4111caf5e8a6efca00949068fd5bc2c5d370ee0d.zip
don't install a single package twice
CVS patchset: 2934 CVS date: 1999/03/31 22:19:00
-rw-r--r--lib/install.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/install.c b/lib/install.c
index f74d1e2ec..c8f1556f0 100644
--- a/lib/install.c
+++ b/lib/install.c
@@ -272,7 +272,6 @@ int installBinaryPackage(const char * rootdir, rpmdb db, FD_t fd, Header h,
headerGetEntry(h, RPMTAG_VERSION, &type, (void **) &version, &fileCount);
headerGetEntry(h, RPMTAG_RELEASE, &type, (void **) &release, &fileCount);
-
rpmMessage(RPMMESS_DEBUG, _("package: %s-%s-%s files test = %d\n"),
name, version, release, flags & RPMTRANS_FLAG_TEST);
@@ -285,6 +284,11 @@ int installBinaryPackage(const char * rootdir, rpmdb db, FD_t fd, Header h,
dbiFreeIndexRecord(matches);
}
+ if (!rpmdbFindByHeader(db, h, &matches)) {
+ otherOffset = matches.recs[0].recOffset;
+ dbiFreeIndexRecord(matches);
+ }
+
if (rootdir) {
/* this loads all of the name services libraries, in case we
don't have access to them in the chroot() */