xbps-remove: dont error out if no orphans were found.
This commit is contained in:
parent
5830f154d5
commit
fcb565cfa1
@ -380,10 +380,12 @@ main(int argc, char **argv)
|
|||||||
if (orphans) {
|
if (orphans) {
|
||||||
if ((rv = xbps_transaction_autoremove_pkgs(&xh)) != 0) {
|
if ((rv = xbps_transaction_autoremove_pkgs(&xh)) != 0) {
|
||||||
if (rv != ENOENT) {
|
if (rv != ENOENT) {
|
||||||
fprintf(stderr, "Failed to remove package "
|
fprintf(stderr, "Failed to queue package "
|
||||||
"orphans: %s\n", strerror(rv));
|
"orphans: %s\n", strerror(rv));
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
rv = 0;
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user