aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-10 18:51:34 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-10 18:51:34 +0100
commit3a162abca5d5449d2f5d43b2494440866f1984c3 (patch)
tree9ab2bccaf055db33d4cc53401d63d681469b6fef
parent8e0376bf0e0f0e900a0d514e9354e0746b2e0e84 (diff)
downloadpaludis-3a162abca5d5449d2f5d43b2494440866f1984c3.tar.gz
paludis-3a162abca5d5449d2f5d43b2494440866f1984c3.tar.xz
Add metadata keys for CONFIG_PROTECT{,_MASK}
-rw-r--r--paludis/repositories/e/e_installed_repository_id.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/paludis/repositories/e/e_installed_repository_id.cc b/paludis/repositories/e/e_installed_repository_id.cc
index ac41804..602085d 100644
--- a/paludis/repositories/e/e_installed_repository_id.cc
+++ b/paludis/repositories/e/e_installed_repository_id.cc
@@ -99,6 +99,8 @@ namespace
std::shared_ptr<const MetadataValueKey<std::string> > cbuild;
std::shared_ptr<const MetadataValueKey<std::string> > cflags;
std::shared_ptr<const MetadataValueKey<std::string> > chost;
+ std::shared_ptr<const MetadataValueKey<std::string> > config_protect;
+ std::shared_ptr<const MetadataValueKey<std::string> > config_protect_mask;
std::shared_ptr<const MetadataValueKey<std::string> > ctarget;
std::shared_ptr<const MetadataValueKey<std::string> > cxxflags;
std::shared_ptr<const MetadataValueKey<std::string> > ldflags;
@@ -539,6 +541,20 @@ EInstalledRepositoryID::need_keys_added() const
add_metadata_key(_imp->keys->chost);
}
+ if ((_imp->dir / "CONFIG_PROTECT").exists())
+ {
+ _imp->keys->config_protect = std::make_shared<LiteralMetadataValueKey<std::string> >("CONFIG_PROTECT", "CONFIG_PROTECT",
+ mkt_internal, file_contents(_imp->dir / "CONFIG_PROTECT"));
+ add_metadata_key(_imp->keys->config_protect);
+ }
+
+ if ((_imp->dir / "CONFIG_PROTECT_MASK").exists())
+ {
+ _imp->keys->config_protect_mask = std::make_shared<LiteralMetadataValueKey<std::string> >("CONFIG_PROTECT_MASK", "CONFIG_PROTECT_MASK",
+ mkt_internal, file_contents(_imp->dir / "CONFIG_PROTECT_MASK"));
+ add_metadata_key(_imp->keys->config_protect_mask);
+ }
+
if ((_imp->dir / "CXXFLAGS").exists())
{
_imp->keys->cxxflags = std::make_shared<LiteralMetadataValueKey<std::string> >("CXXFLAGS", "CXXFLAGS",