xbps-rindex(8): added -v --verbose option (mainly for -r mode).

This commit is contained in:
Juan RP
2013-10-10 10:43:01 +02:00
parent a5ecaa493f
commit c91050fc35
3 changed files with 13 additions and 4 deletions

View File

@@ -83,7 +83,8 @@ cleaner_cb(struct xbps_handle *xhp, xbps_object_t obj, const char *key _unused,
xbps_object_release(pkgd);
return 0;
}
printf("checking %s (%s)\n", pkgver, binpkg);
if (xhp->flags & XBPS_FLAG_VERBOSE)
printf("checking %s (%s)\n", pkgver, binpkg);
/*
* If binpkg is not registered in index, remove binpkg.
*/