Bug #339402 - Prevent whitespace in repo names.
authorZac Medico <zmedico@gentoo.org>
Sat, 2 Oct 2010 16:13:37 +0000 (09:13 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 2 Oct 2010 16:13:37 +0000 (09:13 -0700)
pym/portage/repository/config.py

index be202c3922f5b902554d5ef8eab8d56fe7e78ccb..acaec70bb3f7d495722ceb581af7adef7191739a 100644 (file)
@@ -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