lib/package_unpack.c: pass correct number of args to xbps_set_cb_state().

This commit is contained in:
Juan RP 2013-03-07 11:52:47 +01:00
parent 59105ab995
commit 7e2d5344d3

View File

@ -498,15 +498,14 @@ unpack_archive(struct xbps_handle *xhp,
if (remove(file) == -1) { if (remove(file) == -1) {
xbps_set_cb_state(xhp, xbps_set_cb_state(xhp,
XBPS_STATE_REMOVE_FILE_OBSOLETE_FAIL, XBPS_STATE_REMOVE_FILE_OBSOLETE_FAIL,
errno, pkgver, NULL, errno, pkgver,
"%s: failed to remove obsolete entry `%s': %s", "%s: failed to remove obsolete entry `%s': %s",
pkgver, file, strerror(errno)); pkgver, file, strerror(errno));
continue; continue;
} }
xbps_set_cb_state(xhp, xbps_set_cb_state(xhp,
XBPS_STATE_REMOVE_FILE_OBSOLETE, XBPS_STATE_REMOVE_FILE_OBSOLETE,
0, pkgver, NULL, 0, pkgver, "%s: removed obsolete entry: %s", pkgver, file);
"%s: removed obsolete entry: %s", pkgver, file);
prop_object_release(obj); prop_object_release(obj);
} }