xbps_pkgdb_replace_pkgd: fix bool vs int confusion in returned value.
This commit is contained in:
parent
3f9477417b
commit
99f5549a29
@ -56,7 +56,7 @@
|
|||||||
*/
|
*/
|
||||||
#define XBPS_PKGINDEX_VERSION "1.4"
|
#define XBPS_PKGINDEX_VERSION "1.4"
|
||||||
|
|
||||||
#define XBPS_API_VERSION "20120120"
|
#define XBPS_API_VERSION "20120120-1"
|
||||||
#define XBPS_VERSION "0.12"
|
#define XBPS_VERSION "0.12"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -237,8 +237,8 @@ xbps_pkgdb_replace_pkgd(prop_dictionary_t pkgd,
|
|||||||
else
|
else
|
||||||
rv = xbps_array_replace_dict_by_name(xhp->pkgdb, pkgd, pkg);
|
rv = xbps_array_replace_dict_by_name(xhp->pkgdb, pkgd, pkg);
|
||||||
|
|
||||||
if (!flush || rv != 0)
|
if (!flush)
|
||||||
return rv;
|
return rv != 0 ? false : true;
|
||||||
|
|
||||||
if ((xbps_pkgdb_update(xhp, true)) != 0)
|
if ((xbps_pkgdb_update(xhp, true)) != 0)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user