From ab6d4a19f18085029a79b8be6f484655cd2b68f7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 4 Jan 2012 17:59:49 +0100 Subject: [PATCH] xbps_configure_packages: fix flush arg confusion. --- include/xbps_api.h | 2 +- lib/package_configure.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/xbps_api.h b/include/xbps_api.h index ee96669f..8640c482 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -56,7 +56,7 @@ */ #define XBPS_PKGINDEX_VERSION "1.3" -#define XBPS_API_VERSION "20120104" +#define XBPS_API_VERSION "20120104-1" #define XBPS_VERSION "0.12" /** diff --git a/lib/package_configure.c b/lib/package_configure.c index 97747c63..e7bde58e 100644 --- a/lib/package_configure.c +++ b/lib/package_configure.c @@ -66,8 +66,8 @@ xbps_configure_packages(bool flush) struct xbps_handle *xhp = xbps_handle_get(); int rv; - rv = xbps_regpkgdb_foreach_pkg_cb(configure_pkgs_cb, &flush); - if (rv == 0) + rv = xbps_regpkgdb_foreach_pkg_cb(configure_pkgs_cb, NULL); + if (rv == 0 && flush) rv = xbps_regpkgdb_update(xhp, true); return rv;