Fix previous; only use arg0 in client cb.

This commit is contained in:
Juan RP 2013-01-31 09:41:43 +01:00
parent d2178b70e3
commit 7360a6fca3
2 changed files with 2 additions and 3 deletions

View File

@ -59,8 +59,7 @@ state_cb(struct xbps_state_cb_data *xscd, void *cbdata)
printf("\n[*] Configuring unpacked packages\n");
break;
case XBPS_STATE_REPOSYNC:
printf("[*] Updating `%s/%s' ...\n",
xscd->arg0, xscd->arg1);
printf("[*] Updating `%s' ...\n", xscd->arg0);
break;
case XBPS_STATE_VERIFY:
printf("%s: checking binary pkg integrity ...\n", xscd->arg0);

View File

@ -125,7 +125,7 @@ xbps_rindex_sync(struct xbps_handle *xhp, const char *uri, const char *plistf)
}
/* reposync start cb */
xbps_set_cb_state(xhp, XBPS_STATE_REPOSYNC, 0, uri, rpidx, NULL);
xbps_set_cb_state(xhp, XBPS_STATE_REPOSYNC, 0, rpidx, NULL, NULL);
/*
* Download plist index file from repository.
*/