Make some xbps_warn_printf dependent of XBPS_FLAG_VERBOSE.

This commit is contained in:
Juan RP
2011-01-30 18:38:16 +01:00
parent 5c7eaf2f92
commit da607becf9
2 changed files with 9 additions and 5 deletions

View File

@ -151,8 +151,9 @@ xbps_remove_pkg_files(prop_dictionary_t dict, const char *key)
* Remove the object if possible.
*/
if (remove(path) == -1) {
xbps_warn_printf("can't remove %s `%s': %s\n",
curobj, file, strerror(errno));
if (flags & XBPS_FLAG_VERBOSE)
xbps_warn_printf("can't remove %s `%s': %s\n",
curobj, file, strerror(errno));
} else {
/* Success */