From 0e38b649ffc86361771ddebb0fde4c69d3fa99f0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 1 Feb 2011 17:30:59 +0100 Subject: [PATCH] xbps_get_pkg_state_installed: if pkg dictionary is not found return ENOENT. --- lib/package_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/package_state.c b/lib/package_state.c index cb90b3ad..6f347bb7 100644 --- a/lib/package_state.c +++ b/lib/package_state.c @@ -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);