pkg: allow 'installed' as filter criterion.

This commit is contained in:
Thomas Geymayer 2014-06-15 13:52:42 +02:00
parent b58bf443ff
commit 1225e53162

View 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