xbps_pkgdb_replace_pkgd: fix bool vs int confusion in returned value.

This commit is contained in:
Juan RP 2012-01-20 12:38:24 +01:00
parent 3f9477417b
commit 99f5549a29
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -237,8 +237,8 @@ xbps_pkgdb_replace_pkgd(prop_dictionary_t pkgd,
else
rv = xbps_array_replace_dict_by_name(xhp->pkgdb, pkgd, pkg);
if (!flush || rv != 0)
return rv;
if (!flush)
return rv != 0 ? false : true;
if ((xbps_pkgdb_update(xhp, true)) != 0)
return false;