aboutsummaryrefslogtreecommitdiff
path: root/paludis/portage_repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-06 09:55:00 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-06 09:55:00 +0000
commitf724e50fda7c74babe105a5d45de4cc0a072978b (patch)
tree9fd7d3d41aa3183951c890884f975e3bc97799bc /paludis/portage_repository.cc
parent2c46b4449c7bbef5be5c75a4ca1e67aa8e31783a (diff)
downloadpaludis-f724e50fda7c74babe105a5d45de4cc0a072978b.tar.gz
paludis-f724e50fda7c74babe105a5d45de4cc0a072978b.tar.xz
Initial uninstall support
Diffstat (limited to 'paludis/portage_repository.cc')
-rw-r--r--paludis/portage_repository.cc36
1 files changed, 7 insertions, 29 deletions
diff --git a/paludis/portage_repository.cc b/paludis/portage_repository.cc
index 7b775e4..16c25b5 100644
--- a/paludis/portage_repository.cc
+++ b/paludis/portage_repository.cc
@@ -632,33 +632,6 @@ PortageRepository::fetch_repo_name(const std::string & location)
return RepositoryName("x-" + modified_location);
}
-namespace
-{
- std::string
- log_level_string()
- {
- switch (Log::get_instance()->log_level())
- {
- case ll_qa:
- return "qa";
-
- case ll_warning:
- return "warning";
-
- case ll_debug:
- return "debug";
-
- case ll_silent:
- return "silent";
-
- case last_ll:
- ;
- };
-
- throw InternalError(PALUDIS_HERE, "Bad log level");
- }
-}
-
VersionMetadata::ConstPointer
PortageRepository::do_version_metadata(
const CategoryNamePart & c, const PackageNamePart & p, const VersionSpec & v) const
@@ -759,7 +732,7 @@ PortageRepository::do_version_metadata(
("PALUDIS_BASHRC_FILES", _imp->env->bashrc_files())
("PALUDIS_COMMAND", _imp->env->paludis_command())
("KV", kernel_version())
- ("PALUDIS_EBUILD_LOG_LEVEL", log_level_string())
+ ("PALUDIS_EBUILD_LOG_LEVEL", Log::get_instance()->log_level_string())
("PALUDIS_EBUILD_DIR", getenv_with_default("PALUDIS_EBUILD_DIR", LIBEXECDIR "/paludis")));
@@ -1188,7 +1161,7 @@ PortageRepository::do_install(const QualifiedPackageName & q, const VersionSpec
("PALUDIS_BASHRC_FILES", _imp->env->bashrc_files())
("PALUDIS_COMMAND", _imp->env->paludis_command())
("KV", kernel_version())
- ("PALUDIS_EBUILD_LOG_LEVEL", log_level_string())
+ ("PALUDIS_EBUILD_LOG_LEVEL", Log::get_instance()->log_level_string())
("PALUDIS_EBUILD_DIR", getenv_with_default("PALUDIS_EBUILD_DIR", LIBEXECDIR "/paludis")));
if (0 != run_command(cmd))
@@ -1226,3 +1199,8 @@ PortageRepository::do_sync() const
return true;
}
+void
+PortageRepository::do_uninstall(const QualifiedPackageName &, const VersionSpec &) const
+{
+ throw InternalError(PALUDIS_HERE, "TODO: PortageRepository doesn't support do_uninstall");
+}