[PATCH setup 01/10] isBinary() should return true for orphaned packages
Jon Turney
jon.turney@dronecode.org.uk
Tue May 23 16:47:00 GMT 2017
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
More information about the Cygwin-apps
mailing list