bin/xbps-install: ignore EBUSY errors

This commit is contained in:
Duncaen 2019-03-22 21:43:52 +01:00
parent 3ad6b7a523
commit c950441537

View File

@ -175,8 +175,8 @@ state_cb(const struct xbps_state_cb_data *xscd, void *cbdata UNUSED)
case XBPS_STATE_REMOVE_FILE_FAIL: case XBPS_STATE_REMOVE_FILE_FAIL:
case XBPS_STATE_REMOVE_FILE_HASH_FAIL: case XBPS_STATE_REMOVE_FILE_HASH_FAIL:
case XBPS_STATE_REMOVE_FILE_OBSOLETE_FAIL: case XBPS_STATE_REMOVE_FILE_OBSOLETE_FAIL:
/* Ignore errors due to not empty directories */ /* Ignore errors due to not empty directories or directories being a mount point */
if (xscd->err == ENOTEMPTY) if (xscd->err == ENOTEMPTY || xscd->err == EBUSY)
return 0; return 0;
xbps_error_printf("%s\n", xscd->desc); xbps_error_printf("%s\n", xscd->desc);