Check for obj validity with prop_object_type(), use xbps_pkg_has_rundeps().

This commit is contained in:
Juan RP
2011-10-31 09:48:46 +01:00
parent f35e1eff42
commit b8c804e891
2 changed files with 7 additions and 7 deletions

View File

@@ -457,7 +457,7 @@ xbps_repository_find_pkg_deps(prop_dictionary_t transd,
assert(prop_object_type(repo_pkgd) == PROP_TYPE_DICTIONARY);
pkg_rdeps = prop_dictionary_get(repo_pkgd, "run_depends");
if (pkg_rdeps == NULL)
if (prop_object_type(pkg_rdeps) != PROP_TYPE_ARRAY)
return 0;
prop_dictionary_get_cstring_nocopy(repo_pkgd, "pkgver", &pkgver);