From 539dd1c0cdb92a443b8963f7e8a28c84e1b4878c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 25 Jun 2011 22:53:47 +0200 Subject: [PATCH] xbps-bin: when replacing pkgs only purge for pkgs that aren't going to be updated. --- bin/xbps-bin/install.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/xbps-bin/install.c b/bin/xbps-bin/install.c index 86b171d7..4fcf72a9 100644 --- a/bin/xbps-bin/install.c +++ b/bin/xbps-bin/install.c @@ -447,6 +447,8 @@ exec_transaction(struct transaction *trans) "remove `%s': %s\n", pkgver, strerror(rv)); return rv; } + if (!update) + continue; printf("Purging `%s' package...\n", pkgver); if ((rv = xbps_purge_pkg(pkgname, false)) != 0) { xbps_error_printf("xbps-bin: failed to "