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:
Juan RP
2011-01-27 18:22:57 +01:00
parent 93e1a0a22c
commit faad0a6597
5 changed files with 62 additions and 59 deletions

View File

@@ -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);