]> git.mxchange.org Git - simgear.git/commitdiff
pkg: allow 'installed' as filter criterion.
authorThomas Geymayer <tomgey@gmail.com>
Sun, 15 Jun 2014 11:52:42 +0000 (13:52 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 15 Jun 2014 11:58:12 +0000 (13:58 +0200)
simgear/package/Package.cxx

index c9e67b4c0f48d2c8b69527884d300718b6459c99..9c8a0b805dfa0e3d7f34631fbbad66fe9872944d 100644 (file)
@@ -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