From e4ff957e42007a288ed3b063abb1cf95bd275034 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 11 Sep 2014 09:05:57 +0200 Subject: [PATCH] xbps_find_pkg_orphans: fix regression adding false positives. --- lib/package_orphans.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/package_orphans.c b/lib/package_orphans.c index 95fb73e3..16e3be09 100644 --- a/lib/package_orphans.c +++ b/lib/package_orphans.c @@ -99,6 +99,7 @@ xbps_find_pkg_orphans(struct xbps_handle *xhp, xbps_array_t orphans_user _unused /* * Skip packages that were not installed automatically. */ + automatic = false; xbps_dictionary_get_bool(pkgd, "automatic-install", &automatic); if (!automatic) continue; @@ -137,6 +138,7 @@ find_orphans: } if (cnt == reqbycnt) { deppkgd = xbps_pkgdb_get_pkg(xhp, deppkgver); + automatic = false; xbps_dictionary_get_bool(deppkgd, "automatic-install", &automatic); if (automatic) xbps_array_add(array, deppkgd);