From 4b1adf589c382744df4e6494dc714187405d4d4f Mon Sep 17 00:00:00 2001 From: Todor Ivanov Date: Tue, 20 Sep 2022 15:32:17 +0300 Subject: [PATCH] Fix python version for patchComponent.sh (#11272) Read python version from env. remove default python version --- bin/patchComponent.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/patchComponent.sh b/bin/patchComponent.sh index 72ac1c96b9..f693d16f22 100755 --- a/bin/patchComponent.sh +++ b/bin/patchComponent.sh @@ -6,7 +6,7 @@ usage() echo -ne "and to decrease the development && testing turnaround time.\n" echo -ne "Usage: \n" echo -ne "\t git diff --no-color | sudo ./patchComponent.sh (wmagent | reqmon | reqmgr2 | reqmgr2ms...)\n or:\n" - echo -ne "\t curl https://patch-diff.githubusercontent.com/raw/dmwm/deployment/pull/740.patch | sudo ./patchComponent.sh (wmagent | reqmon | reqmgr2 | reqmgr2ms...)\n" + echo -ne "\t curl https://patch-diff.githubusercontent.com/raw/dmwm/WMCore/pull/11270.patch | sudo ./patchComponent.sh (wmagent | reqmon | reqmgr2 | reqmgr2ms...)\n" exit 1 } @@ -18,9 +18,9 @@ echo "Patching component: $component" if [[ $component == "wmagent" ]] then - rootDir=/data/srv/$component/current/apps.sw/$component/lib/python2.7/site-packages + rootDir=/data/srv/$component/current/apps.sw/$component/lib/python*/site-packages else - rootDir=/data/srv/current/apps.sw/$component/lib/python2.7/site-packages/ + rootDir=/data/srv/current/apps.sw/$component/lib/python*/site-packages/ fi stripLevel=3