summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-10-30 12:12:54 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-10-30 12:12:54 +0200
commit9482ab214144679f2736598e784f9fc59e3dbf4b (patch)
treeacb91198e7ce924a31ba0a812bf437b9465af598
parentbe83036b2a9231b6ee496f7fea78124f1b53fea5 (diff)
downloadrpm-9482ab214144679f2736598e784f9fc59e3dbf4b.tar.gz
rpm-9482ab214144679f2736598e784f9fc59e3dbf4b.tar.bz2
rpm-9482ab214144679f2736598e784f9fc59e3dbf4b.zip
Use rpmteKey() instead of te internals
-rw-r--r--lib/transaction.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/transaction.c b/lib/transaction.c
index f8d85553e..a38076642 100644
--- a/lib/transaction.c
+++ b/lib/transaction.c
@@ -975,14 +975,16 @@ static rpmRC _rpmtsRollback(rpmts rollbackTransaction)
*/
tsi = rpmtsiInit(rollbackTransaction);
while((te = rpmtsiNext(tsi, 0)) != NULL) {
+ fnpyKey key = NULL;
rpmlog(RPMLOG_NOTICE, _("Cleaning up repackaged packages:\n"));
switch (rpmteType(te)) {
/* The install elements are repackaged packages */
case TR_ADDED:
/* Make sure the filename is still there. XXX: Can't happen */
- if(te->key) {
- rpmlog(RPMLOG_NOTICE, _("\tRemoving %s:\n"), te->key);
- (void) unlink(te->key); /* XXX: Should check for an error? */
+ key = rpmteKey(te);
+ if(key) {
+ rpmlog(RPMLOG_NOTICE, _("\tRemoving %s:\n"), key);
+ (void) unlink(key); /* XXX: Should check for an error? */
}
break;