aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-31 23:59:33 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-31 23:59:33 +0000
commit92f044a91cfe31514d187eb2a1942d15213e7f82 (patch)
tree99da116830f2dbf4932d71f14d6e6fd09fb582a8
parent7f37b0156c66cc6058a71e255a805eb23d5d5906 (diff)
downloadpaludis-92f044a91cfe31514d187eb2a1942d15213e7f82.tar.gz
paludis-92f044a91cfe31514d187eb2a1942d15213e7f82.tar.xz
Call CRAN repositories 'cran' rather than 'cran-cran'
-rw-r--r--paludis/repositories/cran/cran_repository.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/repositories/cran/cran_repository.cc b/paludis/repositories/cran/cran_repository.cc
index 6da7810..81150df 100644
--- a/paludis/repositories/cran/cran_repository.cc
+++ b/paludis/repositories/cran/cran_repository.cc
@@ -240,7 +240,10 @@ CRANRepository::fetch_repo_name(const std::string & location)
{
std::string modified_location(FSEntry(location).basename());
std::replace(modified_location.begin(), modified_location.end(), '/', '-');
- return RepositoryName("cran-" + modified_location);
+ if (modified_location == "cran")
+ return RepositoryName("cran");
+ else
+ return RepositoryName("cran-" + modified_location);
}
#if 0