xbps-bin: when replacing pkgs only purge for pkgs that aren't going to be updated.

This commit is contained in:
Juan RP 2011-06-25 22:53:47 +02:00
parent f0745120f6
commit 539dd1c0cd

View File

@ -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 "