From 30fc7b050a7c70d179dca54688ea03ef300fb195 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 26 Nov 2009 05:01:07 +0100 Subject: [PATCH] xbps_find_pkg_installed_from_plist: if pkg is in 'config-files' state, treat this as not installed and set errno to ENOENT. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091126040107-zj0stff23hlta1d2 --- lib/plist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/plist.c b/lib/plist.c index b5f02068..bb395a5c 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -167,6 +167,9 @@ xbps_find_pkg_installed_from_plist(const char *pkgname) case XBPS_PKG_STATE_UNPACKED: xbps_regpkgs_dictionary_release(); return prop_dictionary_copy(pkgd); + case XBPS_PKG_STATE_CONFIG_FILES: + errno = ENOENT; + break; default: break; }