This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH setup 01/10] isBinary() should return true for orphaned packages
- From: Jon Turney <jon dot turney at dronecode dot org dot uk>
- To: cygwin-apps at cygwin dot com
- Cc: Jon Turney <jon dot turney at dronecode dot org dot uk>
- Date: Tue, 23 May 2017 17:45:49 +0100
- Subject: [PATCH setup 01/10] isBinary() should return true for orphaned packages
- Authentication-results: sourceware.org; auth=none
- References: <20170523164558.50320-1-jon.turney@dronecode.org.uk>
Test added in c23d96d6 is incorrect and results in orphaned packages being
omitted from picker.
---
package_meta.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package_meta.cc b/package_meta.cc
index cffb5b7..b1db191 100644
--- a/package_meta.cc
+++ b/package_meta.cc
@@ -546,7 +546,7 @@ packagemeta::isBinary () const
{
for (set<packageversion>::iterator i=versions.begin();
i != versions.end(); ++i)
- if ((i->Type() == package_binary) && i->accessible())
+ if ((i->Type() == package_binary) && (i->accessible() || (*i == installed)))
return true;
return false;
--
2.12.3