xbps_remove_obsoletes: make xbps_printf conditionalized with XBPS_FLAG_VERBOSE.
This commit is contained in:
parent
36c7cc3bec
commit
8d6eab5ac1
@ -46,7 +46,7 @@ xbps_remove_obsoletes(prop_dictionary_t oldd, prop_dictionary_t newd)
|
||||
const char *array_str = "files";
|
||||
const char *oldhash;
|
||||
char *file;
|
||||
int rv = 0;
|
||||
int rv = 0, flags = xbps_get_flags();
|
||||
bool found, dodirs = false, dolinks = false;
|
||||
|
||||
assert(oldd != NULL);
|
||||
@ -135,8 +135,10 @@ again:
|
||||
free(file);
|
||||
continue;
|
||||
}
|
||||
if (flags & XBPS_FLAG_VERBOSE)
|
||||
xbps_printf("Removed obsolete entry: %s\n",
|
||||
prop_string_cstring_nocopy(oldstr));
|
||||
|
||||
free(file);
|
||||
}
|
||||
if (!dolinks) {
|
||||
|
Loading…
Reference in New Issue
Block a user