]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix yum-repo-mangling regexp
authorZack Cerza <zack@redhat.com>
Thu, 18 Dec 2014 21:02:12 +0000 (14:02 -0700)
committerZack Cerza <zack@redhat.com>
Thu, 18 Dec 2014 21:02:12 +0000 (14:02 -0700)
It was failing to work if the branch name contained a '-'.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/install.py

index df36c5a2f1e520e77306273c36d27c661896bdab..f07dbc347b20ebb5ec0d63b644c6253a63b04fa2 100644 (file)
@@ -406,7 +406,7 @@ def _yum_fix_repo_priority(remote, project, uri):
             run.Raw(
                 '\':a;N;$!ba;s/enabled=1\\ngpg/enabled=1\\npriority=1\\ngpg/g\''),
             '-e',
-            run.Raw("'s;ref/[a-zA-Z0-9_]*/;{uri}/;g'".format(uri=uri)),
+            run.Raw("'s;ref/[a-zA-Z0-9_-]*/;{uri}/;g'".format(uri=uri)),
             '/etc/yum.repos.d/%s.repo' % project,
         ]
     )