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;