diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-11-12 19:36:58 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-11-12 19:36:58 +0200 |
commit | 526c052dd28e8c8ff68c15c752f7349e721b9f01 (patch) | |
tree | cebc08e9f143a696406bd65937d159d9f3e57e0c /lib/rpminstall.c | |
parent | c11c97b67cda698486cee26f0621231731c6ebcf (diff) | |
download | librpm-tizen-526c052dd28e8c8ff68c15c752f7349e721b9f01.tar.gz librpm-tizen-526c052dd28e8c8ff68c15c752f7349e721b9f01.tar.bz2 librpm-tizen-526c052dd28e8c8ff68c15c752f7349e721b9f01.zip |
Don't bother retrieving db offset for erase elements
- not needed anymore, use -1 to mean "unused" and document dboffset
to rpmtsAddEraseElement() as unused
Diffstat (limited to 'lib/rpminstall.c')
-rw-r--r-- | lib/rpminstall.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rpminstall.c b/lib/rpminstall.c index 4a972eb79..2fa23dbc5 100644 --- a/lib/rpminstall.c +++ b/lib/rpminstall.c @@ -667,9 +667,8 @@ int rpmErase(rpmts ts, struct rpmInstallArguments_s * ia, ARGV_const_t argv) mi = rpmtsInitIterator(ts, RPMDBI_LABEL, *arg, 0); while ((h = rpmdbNextIterator(mi)) != NULL) { - unsigned int recOffset; - if (erasing && (recOffset = rpmdbGetIteratorOffset(mi))) { - (void) rpmtsAddEraseElement(ts, h, recOffset); + if (erasing) { + (void) rpmtsAddEraseElement(ts, h, -1); numPackages++; } else { char *nevra = headerFormat(h, qfmt, NULL); |