Make xbps_remove_pkg_from_* return int rather than bool.
--HG-- extra : convert_revision : 9f413873669b552a4d7a6e25e667fe5ff43f6a78
This commit is contained in:
@@ -176,10 +176,10 @@ repoidx_addpkg(const char *file, const char *filename, const char *pkgdir)
|
||||
* registered actually, remove old package from
|
||||
* the index.
|
||||
*/
|
||||
if (!xbps_remove_pkg_from_dict(idxdict,
|
||||
"packages", pkgname)) {
|
||||
rv = xbps_remove_pkg_from_dict(idxdict,
|
||||
"packages", pkgname);
|
||||
if (rv != 0) {
|
||||
prop_object_release(newpkgd);
|
||||
rv = EINVAL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user