From 1225e53162aff948e6b3382d9eac50fa85afec7b Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sun, 15 Jun 2014 13:52:42 +0200 Subject: [PATCH] pkg: allow 'installed' as filter criterion. --- simgear/package/Package.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/simgear/package/Package.cxx b/simgear/package/Package.cxx index c9e67b4c..9c8a0b80 100644 --- a/simgear/package/Package.cxx +++ b/simgear/package/Package.cxx @@ -87,6 +87,11 @@ bool Package::matches(const SGPropertyNode* aFilter) const return false; } } + else if (filter_name == "installed") { + if (isInstalled() != c->getBoolValue()) { + return false; + } + } else SG_LOG(SG_GENERAL, SG_WARN, "unknown filter term:" << filter_name); } // of filter props iteration