xbps-remove: fix --dry-run for --clean-cache

`xbps-remove --clean-cache --dry-run` did not consider the
--dry-run flag, this has been fixed.
This commit is contained in:
Jan Tatje
2016-09-02 15:55:09 +02:00
parent 3a1892028a
commit 46be602e28
3 changed files with 12 additions and 7 deletions

View File

@ -262,7 +262,7 @@ main(int argc, char **argv)
maxcols = get_maxcols();
if (clean_cache) {
rv = clean_cachedir(&xh);
rv = clean_cachedir(&xh, drun);
if (!orphans || rv)
exit(rv);;
}