xbps-remove: dont error out if no orphans were found.

This commit is contained in:
Juan RP 2012-11-06 14:46:43 +01:00
parent 5830f154d5
commit fcb565cfa1

View File

@ -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;
} }
} }