Make xbps_remove_pkg_from_* use shared code, and add another variant.
The functions have been renamed to really match what they do.
This commit is contained in:
@@ -151,7 +151,7 @@ xbps_unregister_pkg(const char *pkgname)
|
||||
if (plist == NULL)
|
||||
return ENOMEM;
|
||||
|
||||
if (!xbps_remove_pkg_dict_from_file(pkgname, plist))
|
||||
if (!xbps_remove_pkg_dict_from_plist_by_name(pkgname, plist))
|
||||
rv = errno;
|
||||
|
||||
free(plist);
|
||||
|
Reference in New Issue
Block a user