aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/unwritten/unwritten_repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-06 19:53:51 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-06 20:34:59 +0000
commit78fae8c23f0aa4070ed495ced4c4f20434f91c62 (patch)
treeadf844644b946f069e660796b12c65e87554dc9a /paludis/repositories/unwritten/unwritten_repository.cc
parent374a0586092fc10b7d08dba9a2af9fb689758cd4 (diff)
downloadpaludis-78fae8c23f0aa4070ed495ced4c4f20434f91c62.tar.gz
paludis-78fae8c23f0aa4070ed495ced4c4f20434f91c62.tar.xz
unwritten/repository.conf
Diffstat (limited to 'paludis/repositories/unwritten/unwritten_repository.cc')
-rw-r--r--paludis/repositories/unwritten/unwritten_repository.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/repositories/unwritten/unwritten_repository.cc b/paludis/repositories/unwritten/unwritten_repository.cc
index f3e68236b..341fa5bd7 100644
--- a/paludis/repositories/unwritten/unwritten_repository.cc
+++ b/paludis/repositories/unwritten/unwritten_repository.cc
@@ -339,7 +339,10 @@ UnwrittenRepository::repository_factory_name(
const std::function<std::string (const std::string &)> & f)
{
if (f("name").empty())
- return RepositoryName("unwritten");
+ {
+ UnwrittenRepositoryInformation info(UnwrittenRepositoryStore::repository_information(FSPath(f("location"))));
+ return RepositoryName(info.name());
+ }
else
return RepositoryName(f("name"));
}