]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
rpm.py: Do not sed ref/sha1 2148/head
authorDavid Galloway <david.galloway@ibm.com>
Thu, 19 Feb 2026 15:28:01 +0000 (10:28 -0500)
committerDavid Galloway <david.galloway@ibm.com>
Thu, 19 Feb 2026 15:28:01 +0000 (10:28 -0500)
This is a relic from gitbuilder days and causes issues if a dev puts "ref" in the branch name

Signed-off-by: David Galloway <david.galloway@ibm.com>
teuthology/task/install/rpm.py

index 206764e70659390ce9ab4ac1497586998ca3722e..0e526757d5566731b9579ce0754c9bd79843e335 100644 (file)
@@ -332,7 +332,7 @@ def _update_package_list_and_install(ctx, remote, rpm, config):
 
 def _yum_fix_repo_priority(remote, project, uri):
     """
-    On the remote, 'priority=1' lines to each enabled repo in:
+    On the remote, add 'priority=1' lines to each enabled repo in:
 
         /etc/yum.repos.d/{project}.repo
 
@@ -345,8 +345,6 @@ def _yum_fix_repo_priority(remote, project, uri):
             'if', 'test', '-f', repo_path, run.Raw(';'), 'then',
             'sudo', 'sed', '-i', '-e',
             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)),
             repo_path, run.Raw(';'), 'fi'
         ]
     )