From: Thomas Geymayer Date: Sun, 15 Jun 2014 11:52:42 +0000 (+0200) Subject: pkg: allow 'installed' as filter criterion. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1225e53162aff948e6b3382d9eac50fa85afec7b;p=simgear.git pkg: allow 'installed' as filter criterion. --- 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