summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-02 09:13:37 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-02 09:13:37 -0700
commitf195e7bee59984c6518c67bd0d13718dcbb67a1e (patch)
tree2bf5b642ceea111022ac1dd80ca0793f69f97d15
parent5e756821f4ce8a205b52c03c34f5aadfc70154f9 (diff)
downloadportage-f195e7bee59984c6518c67bd0d13718dcbb67a1e.tar.gz
portage-f195e7bee59984c6518c67bd0d13718dcbb67a1e.tar.bz2
portage-f195e7bee59984c6518c67bd0d13718dcbb67a1e.zip
Bug #339402 - Prevent whitespace in repo names.
-rw-r--r--pym/portage/repository/config.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index be202c392..acaec70bb 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -72,6 +72,7 @@ class RepoConfig(object):
missing = True
if self.location is not None:
name, missing = self._read_repo_name(self.location)
+ name = '-'.join(name.split())
elif name == "DEFAULT":
missing = False
self.name = name