aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/unwritten/unwritten_repository.cc
diff options
context:
space:
mode:
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"));
}