xbps_configure_packages: fix flush arg confusion.

This commit is contained in:
Juan RP 2012-01-04 17:59:49 +01:00
parent a7ef059673
commit ab6d4a19f1
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@
*/ */
#define XBPS_PKGINDEX_VERSION "1.3" #define XBPS_PKGINDEX_VERSION "1.3"
#define XBPS_API_VERSION "20120104" #define XBPS_API_VERSION "20120104-1"
#define XBPS_VERSION "0.12" #define XBPS_VERSION "0.12"
/** /**

View File

@ -66,8 +66,8 @@ xbps_configure_packages(bool flush)
struct xbps_handle *xhp = xbps_handle_get(); struct xbps_handle *xhp = xbps_handle_get();
int rv; int rv;
rv = xbps_regpkgdb_foreach_pkg_cb(configure_pkgs_cb, &flush); rv = xbps_regpkgdb_foreach_pkg_cb(configure_pkgs_cb, NULL);
if (rv == 0) if (rv == 0 && flush)
rv = xbps_regpkgdb_update(xhp, true); rv = xbps_regpkgdb_update(xhp, true);
return rv; return rv;