aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/configuration/repositories/installed_unpackaged.html.part3
-rw-r--r--paludis/repositories/unpackaged/installed_repository.cc8
2 files changed, 9 insertions, 2 deletions
diff --git a/doc/configuration/repositories/installed_unpackaged.html.part b/doc/configuration/repositories/installed_unpackaged.html.part
index 8687e6eb2..a9d5a5588 100644
--- a/doc/configuration/repositories/installed_unpackaged.html.part
+++ b/doc/configuration/repositories/installed_unpackaged.html.part
@@ -11,5 +11,8 @@ for <code>installed_unpackaged</code> format repositories:</p>
<dl>
<dt><code>location</code></dt>
<dd>The location of the repository. Mandatory.</dd>
+
+ <dt><code>name</code></dt>
+ <dd>Override the name of the repository.</dd>
</dl>
diff --git a/paludis/repositories/unpackaged/installed_repository.cc b/paludis/repositories/unpackaged/installed_repository.cc
index 5ce7854a3..fb350bb87 100644
--- a/paludis/repositories/unpackaged/installed_repository.cc
+++ b/paludis/repositories/unpackaged/installed_repository.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007, 2008, 2009, 2010, 2011, 2013 Ciaran McCreesh
+ * Copyright (c) 2007, 2008, 2009, 2010, 2011, 2013, 2014 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -435,7 +435,11 @@ InstalledUnpackagedRepository::repository_factory_create(
if (root.empty())
throw unpackaged_repositories::RepositoryConfigurationError("Key 'root' not specified or empty");
- return std::make_shared<InstalledUnpackagedRepository>(RepositoryName("installed-unpackaged"),
+ std::string name_str(f("name"));
+ if (name_str.empty())
+ name_str = "installed-unpackaged";
+
+ return std::make_shared<InstalledUnpackagedRepository>(RepositoryName(name_str),
make_named_values<unpackaged_repositories::InstalledUnpackagedRepositoryParams>(
n::environment() = env,
n::location() = location,