aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-06-12 09:51:31 +0000
committerAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2008-06-14 12:37:56 +0000
commit14b08c7f93dcc1659dad5e6045d306ddf5a128f1 (patch)
tree1066670bba2a1a8626746bcc29ad0f02a17a1a6d
parent4be433c7f0e6b6e9f99e19c27625bbf71670bb1f (diff)
downloadpaludis-14b08c7f93dcc1659dad5e6045d306ddf5a128f1.tar.gz
paludis-14b08c7f93dcc1659dad5e6045d306ddf5a128f1.tar.xz
Don't allow UnavailableRepository to be the favourite repository.
-rw-r--r--paludis/repositories/unavailable/unavailable_repository.cc6
-rw-r--r--paludis/repositories/unavailable/unavailable_repository.hh2
2 files changed, 8 insertions, 0 deletions
diff --git a/paludis/repositories/unavailable/unavailable_repository.cc b/paludis/repositories/unavailable/unavailable_repository.cc
index e1ac2c4..d94f69c 100644
--- a/paludis/repositories/unavailable/unavailable_repository.cc
+++ b/paludis/repositories/unavailable/unavailable_repository.cc
@@ -107,6 +107,12 @@ UnavailableRepository::~UnavailableRepository()
{
}
+bool
+UnavailableRepository::can_be_favourite_repository() const
+{
+ return false;
+}
+
void
UnavailableRepository::_add_metadata_keys()
{
diff --git a/paludis/repositories/unavailable/unavailable_repository.hh b/paludis/repositories/unavailable/unavailable_repository.hh
index aac9f91..cdcecab 100644
--- a/paludis/repositories/unavailable/unavailable_repository.hh
+++ b/paludis/repositories/unavailable/unavailable_repository.hh
@@ -62,6 +62,8 @@ namespace paludis
UnavailableRepository(const UnavailableRepositoryParams &);
~UnavailableRepository();
+ virtual bool can_be_favourite_repository() const;
+
virtual const std::tr1::shared_ptr<const MetadataValueKey<std::string> > format_key() const;
virtual const std::tr1::shared_ptr<const MetadataValueKey<FSEntry> > installed_root_key() const;