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
This commit is contained in:
Juan RP 2009-11-26 05:01:07 +01:00
parent 572068d3df
commit 30fc7b050a

View File

@ -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;
}