xbps_get_pkg_state_installed: if pkg dictionary is not found return ENOENT.

This commit is contained in:
Juan RP 2011-02-01 17:30:59 +01:00
parent fdc496e8f1
commit 0e38b649ff

View File

@ -107,7 +107,7 @@ xbps_get_pkg_state_installed(const char *pkgname, pkg_state_t *state)
pkgd = xbps_find_pkg_dict_installed(pkgname, false);
if (pkgd == NULL)
return errno;
return ENOENT;
*state = get_state(pkgd);
prop_object_release(pkgd);