xbps_configure_packages: fix flush arg confusion.
This commit is contained in:
parent
a7ef059673
commit
ab6d4a19f1
@ -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"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user