aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-30 21:11:53 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-30 21:11:53 +0000
commitf7ea662e169332c43e2b45370773ae4d13953610 (patch)
tree90775c4668c6e8c59268d48e516fcdf57b3411a8
parente359e585c2538b91910ccdeef282d3ca962ac820 (diff)
downloadpaludis-f7ea662e169332c43e2b45370773ae4d13953610.tar.gz
paludis-f7ea662e169332c43e2b45370773ae4d13953610.tar.xz
More PortageEnvironment work
-rw-r--r--paludis/environments/portage/portage_environment.cc7
-rw-r--r--paludis/environments/portage/portage_environment.hh2
2 files changed, 9 insertions, 0 deletions
diff --git a/paludis/environments/portage/portage_environment.cc b/paludis/environments/portage/portage_environment.cc
index 6edaba5..c3bbd2b 100644
--- a/paludis/environments/portage/portage_environment.cc
+++ b/paludis/environments/portage/portage_environment.cc
@@ -395,6 +395,7 @@ PortageEnvironment::_add_vdb_repository()
keys->insert("format", "vdb");
keys->insert("names_cache", "/var/empty");
keys->insert("provides_cache", "/var/empty");
+ keys->insert("world", "/var/lib/portage/world");
package_database()->add_repository(1,
RepositoryMaker::get_instance()->find_maker("vdb")(this, keys));
}
@@ -623,3 +624,9 @@ PortageEnvironment::end_mirrors(const std::string & m) const
return MirrorIterator(_imp->mirrors.upper_bound(m));
}
+bool
+PortageEnvironment::accept_breaks_portage() const
+{
+ return false;
+}
+
diff --git a/paludis/environments/portage/portage_environment.hh b/paludis/environments/portage/portage_environment.hh
index e567fea..94c5241 100644
--- a/paludis/environments/portage/portage_environment.hh
+++ b/paludis/environments/portage/portage_environment.hh
@@ -98,6 +98,8 @@ namespace paludis
virtual std::string bashrc_files() const
PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ virtual bool accept_breaks_portage() const;
};
}