[PATCH oz] The repositoryid is not allowed to have spaces.

Chris Alfonso calfonso at redhat.com
Mon Dec 19 20:55:42 UTC 2011


>From the yum.conf man page:
repositoryid Must be a unique name for each repository, one word.

Following the pattern for the file name, replacing spaces with underscores.
---
 oz/RedHat.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/oz/RedHat.py b/oz/RedHat.py
index 42c3d52..07ffc3b 100644
--- a/oz/RedHat.py
+++ b/oz/RedHat.py
@@ -1042,7 +1042,7 @@ class RedHatCDYumGuest(RedHatCDGuest):
             filename = repo.name.replace(" ", "_") + ".repo"
             localname = os.path.join(self.icicle_tmp, filename)
             f = open(localname, 'w')
-            f.write("[%s]\n" % repo.name)
+            f.write("[%s]\n" % repo.name.replace(" ", "_"))
             f.write("name=%s\n" % repo.name)
             if host and not guest:
                 remote_tun_port = tunport
-- 
1.7.6.4




More information about the aeolus-devel mailing list