xbps-bin: when replacing pkgs only purge for pkgs that aren't going to be updated.
This commit is contained in:
parent
f0745120f6
commit
539dd1c0cd
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user