aboutsummaryrefslogtreecommitdiff
path: root/paludis/package_id.cc
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-07-23 19:38:39 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-07-23 19:38:39 +0000
commitd0b17f294b1590abdd666367922b1ef8025569a5 (patch)
treeae829b51c02038a1cd7280c8dee36b6762903958 /paludis/package_id.cc
parent31e8add11f76654b4da9a476a8a03a8bfc43fae1 (diff)
downloadpaludis-d0b17f294b1590abdd666367922b1ef8025569a5.tar.gz
paludis-d0b17f294b1590abdd666367922b1ef8025569a5.tar.xz
Add invalidate_masks method to Repository and PackageID, and use them when appropriate. Fixes: ticket:325
Diffstat (limited to 'paludis/package_id.cc')
-rw-r--r--paludis/package_id.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/package_id.cc b/paludis/package_id.cc
index 183aedb03..2609495c8 100644
--- a/paludis/package_id.cc
+++ b/paludis/package_id.cc
@@ -116,6 +116,12 @@ PackageID::masked() const
return begin_masks() != end_masks();
}
+void
+PackageID::invalidate_masks() const
+{
+ _imp->masks.clear();
+}
+
PackageID::MetadataIterator
PackageID::find_metadata(const std::string & s) const
{