aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-02-12 15:06:15 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-02-12 15:06:15 +0000
commit765411cd8d3b1ba20ae50524f532bac679015fe9 (patch)
treeec6d7e837cdcf23274fb4de95bece206d997f15a
parent74670031ae1f3c4b6073dfef1381732af8f7be41 (diff)
downloadpaludis-765411cd8d3b1ba20ae50524f532bac679015fe9.tar.gz
paludis-765411cd8d3b1ba20ae50524f532bac679015fe9.tar.xz
Read "repository" as well as "REPOSITORY" from the VDB, for compatibility with Portage.
-rw-r--r--paludis/repositories/e/e_installed_repository_id.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/repositories/e/e_installed_repository_id.cc b/paludis/repositories/e/e_installed_repository_id.cc
index b9554b0..b71edef 100644
--- a/paludis/repositories/e/e_installed_repository_id.cc
+++ b/paludis/repositories/e/e_installed_repository_id.cc
@@ -312,6 +312,12 @@ EInstalledRepositoryID::need_keys_added() const
mkt_normal, file_contents(_imp->dir / "REPOSITORY")));
add_metadata_key(_imp->source_origin);
}
+ else if ((_imp->dir / "repository").exists())
+ {
+ _imp->source_origin.reset(new LiteralMetadataStringKey("repository", "Source repository",
+ mkt_normal, file_contents(_imp->dir / "repository")));
+ add_metadata_key(_imp->source_origin);
+ }
if ((_imp->dir / "BINARY_REPOSITORY").exists())
{