From 7d631c5d116d9193ab1b6796f4cf8c27c00d05f4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 5 Jan 2012 11:53:14 +0100 Subject: [PATCH] xbps-bin: fix check_pkg_integrity() pkg dictionary confusion. --- bin/xbps-bin/check.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/xbps-bin/check.c b/bin/xbps-bin/check.c index 40c23823..7280221b 100644 --- a/bin/xbps-bin/check.c +++ b/bin/xbps-bin/check.c @@ -89,7 +89,7 @@ check_pkg_integrity(prop_dictionary_t pkgd, const char *pkgname) opkgd = xbps_find_pkg_dict_installed(pkgname, false); if (opkgd == NULL) { /* find virtual pkg by name */ - pkgd = xbps_find_virtualpkg_dict_installed(pkgname, + opkgd = xbps_find_virtualpkg_dict_installed(pkgname, false); } if (opkgd == NULL) { @@ -141,8 +141,8 @@ do { \ } while (0) /* Execute pkg checks */ - RUN_PKG_CHECK(requiredby, pkgd); - RUN_PKG_CHECK(autoinstall, pkgd); + RUN_PKG_CHECK(requiredby, pkgd ? pkgd : opkgd); + RUN_PKG_CHECK(autoinstall, pkgd ? pkgd : opkgd); RUN_PKG_CHECK(files, filesd); RUN_PKG_CHECK(symlinks, filesd); RUN_PKG_CHECK(rundeps, propsd);