Make xbps_remove_pkg_from_* return int rather than bool.
--HG-- extra : convert_revision : 9f413873669b552a4d7a6e25e667fe5ff43f6a78
This commit is contained in:
parent
147a8af559
commit
625a77883c
6 changed files with 36 additions and 40 deletions
|
@ -53,9 +53,7 @@ xbps_unregister_pkg(const char *pkgname)
|
|||
if (plist == NULL)
|
||||
return EINVAL;
|
||||
|
||||
if (!xbps_remove_pkg_dict_from_file(pkgname, plist))
|
||||
rv = errno;
|
||||
|
||||
rv = xbps_remove_pkg_dict_from_file(pkgname, plist);
|
||||
free(plist);
|
||||
|
||||
return rv;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue