xbps_remove_pkg_from_dict_by_name: make this work correctly again.

This commit is contained in:
Juan RP 2011-12-28 09:44:25 +01:00
parent caaba09295
commit f4f995574c
2 changed files with 4 additions and 2 deletions

View File

@ -56,7 +56,7 @@
*/
#define XBPS_PKGINDEX_VERSION "1.3"
#define XBPS_API_VERSION "20111228-1"
#define XBPS_API_VERSION "20111228-2"
#define XBPS_VERSION "0.12"
/**

View File

@ -130,8 +130,10 @@ xbps_remove_pkg_from_dict_by_name(prop_dictionary_t dict,
errno = ENOENT;
return false;
}
if (!xbps_remove_pkg_from_array_by_name(array, pkgname))
return false;
return xbps_remove_pkg_from_array_by_name(array, pkgname);
return prop_dictionary_set(dict, key, array);
}
bool