From: David Galloway Date: Thu, 19 Feb 2026 15:28:01 +0000 (-0500) Subject: rpm.py: Do not sed ref/sha1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6409cd0858d6785f279842364969184f87a955f3;p=teuthology.git rpm.py: Do not sed ref/sha1 This is a relic from gitbuilder days and causes issues if a dev puts "ref" in the branch name Signed-off-by: David Galloway --- diff --git a/teuthology/task/install/rpm.py b/teuthology/task/install/rpm.py index 206764e70..0e526757d 100644 --- a/teuthology/task/install/rpm.py +++ b/teuthology/task/install/rpm.py @@ -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' ] )