From 7360a6fca3b49a8c125264ca5d314d1eae56b06b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 31 Jan 2013 09:41:43 +0100 Subject: [PATCH] Fix previous; only use arg0 in client cb. --- bin/xbps-install/state_cb.c | 3 +-- lib/rindex_sync.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/xbps-install/state_cb.c b/bin/xbps-install/state_cb.c index 5f2aa59e..dfe2e0c0 100644 --- a/bin/xbps-install/state_cb.c +++ b/bin/xbps-install/state_cb.c @@ -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); diff --git a/lib/rindex_sync.c b/lib/rindex_sync.c index 830ea879..41814eab 100644 --- a/lib/rindex_sync.c +++ b/lib/rindex_sync.c @@ -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. */