xbps_get_pkg_state_installed: if pkg dictionary is not found return ENOENT.
This commit is contained in:
parent
fdc496e8f1
commit
0e38b649ff
@ -107,7 +107,7 @@ xbps_get_pkg_state_installed(const char *pkgname, pkg_state_t *state)
|
|||||||
|
|
||||||
pkgd = xbps_find_pkg_dict_installed(pkgname, false);
|
pkgd = xbps_find_pkg_dict_installed(pkgname, false);
|
||||||
if (pkgd == NULL)
|
if (pkgd == NULL)
|
||||||
return errno;
|
return ENOENT;
|
||||||
|
|
||||||
*state = get_state(pkgd);
|
*state = get_state(pkgd);
|
||||||
prop_object_release(pkgd);
|
prop_object_release(pkgd);
|
||||||
|
Loading…
Reference in New Issue
Block a user