[Yum-devel] [PATCH] tmprepo: avoid spaces in repoid. BZ 965806

Zdenek Pavlas zpavlas at redhat.com
Mon May 27 13:44:42 UTC 2013


From: Sergio Monteiro Basto <sergio at serjux.com>

Signed-off-by: Zdenek Pavlas <zpavlas at redhat.com>
---
 plugins/tmprepo/tmprepo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/tmprepo/tmprepo.py b/plugins/tmprepo/tmprepo.py
index e60dd4d..93e560a 100644
--- a/plugins/tmprepo/tmprepo.py
+++ b/plugins/tmprepo/tmprepo.py
@@ -133,7 +133,7 @@ def add_repomd_repo(base, repomd):
     AutoCleanupDir(trepo_data)
     trepo_name = os.path.basename(os.path.dirname(os.path.dirname(repomd)))
     tmp_fname  = "%s/tmp-%s.repo" % (trepo_data, trepo_name)
-    repoid     = "T-%4.4s-%x" % (trepo_name, int(time.time()))
+    repoid     = "T-%0.4s-%x" % (trepo_name, int(time.time()))
     pgpgcheck, rgpgcheck = rpgpgcheck, rrgpgcheck
     if repomd.startswith("file:"):
         pgpgcheck, rgpgcheck = lpgpgcheck, lrgpgcheck
-- 
1.7.11.7



More information about the Yum-devel mailing list