Fix some issues while matching for required pkgdeps.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091107154159-riikhswt1h3mm9xn
This commit is contained in:
Juan RP
2009-11-07 16:41:59 +01:00
parent 79d3f446fe
commit 795c2a58f5
3 changed files with 18 additions and 5 deletions

View File

@@ -141,16 +141,16 @@ xbps_check_is_installed_pkg(const char *pkg)
free(pkgname);
return -1;
}
free(pkgname);
if (state != XBPS_PKG_STATE_INSTALLED) {
prop_object_release(dict);
return 0;
free(pkgname);
return 0; /* not fully installed */
}
/* Get version from installed package */
prop_dictionary_get_cstring_nocopy(dict, "version", &instver);
instpkg = xbps_xasprintf("%s-%s", pkgname, instver);
free(pkgname);
if (instpkg == NULL) {
prop_object_release(dict);
return -1;