aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-06-11 19:22:17 +0000
committerAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2008-06-14 12:37:55 +0000
commit9c17b66a465a3fe4eeb1e89244fcbbf3c14baf2c (patch)
tree6ceac0f5fcb6cef67044d6a6b686c6f00c72c3d9
parentea0c1040b5fe3cd72354bc248d5a96c6aa521c82 (diff)
downloadpaludis-9c17b66a465a3fe4eeb1e89244fcbbf3c14baf2c.tar.gz
paludis-9c17b66a465a3fe4eeb1e89244fcbbf3c14baf2c.tar.xz
Make sure PackageDatabase::favourite_repository returns an installable repository.
-rw-r--r--paludis/repository.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/repository.cc b/paludis/repository.cc
index ab974c7..fb1016d 100644
--- a/paludis/repository.cc
+++ b/paludis/repository.cc
@@ -31,6 +31,7 @@
#include <paludis/util/set-impl.hh>
#include <paludis/util/config_file.hh>
#include <paludis/util/wrapped_forward_iterator-impl.hh>
+#include <paludis/action.hh>
#include <paludis/metadata_key.hh>
#include <tr1/functional>
#include <map>
@@ -213,7 +214,7 @@ RepositoryMirrorsInterface::is_mirror(const std::string & s) const
bool
Repository::can_be_favourite_repository() const
{
- return true;
+ return some_ids_might_support_action(SupportsActionTest<InstallAction>());
}
std::tr1::shared_ptr<const CategoryNamePartSet>