Do not printf a warning if remove(3) returns EEXIST/ENOTEMPTY/EBUSY.
This commit is contained in:
@ -153,10 +153,11 @@ xbps_remove_pkg_files(prop_dictionary_t dict, const char *key)
|
||||
* Remove the object if possible.
|
||||
*/
|
||||
if (remove(path) == -1) {
|
||||
if (xhp->flags & XBPS_FLAG_VERBOSE)
|
||||
if (errno != EEXIST &&
|
||||
errno != ENOTEMPTY &&
|
||||
errno != EBUSY)
|
||||
xbps_warn_printf("can't remove %s `%s': %s\n",
|
||||
curobj, file, strerror(errno));
|
||||
|
||||
} else {
|
||||
/* Success */
|
||||
if (xhp->flags & XBPS_FLAG_VERBOSE)
|
||||
|
Reference in New Issue
Block a user