Commit 2b17c91b authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-repofix: fix for Sisyphus

parent 19355798
...@@ -52,6 +52,9 @@ __repofix_filter_vendor() ...@@ -52,6 +52,9 @@ __repofix_filter_vendor()
c9) c9)
br="cert9" br="cert9"
;; ;;
Sisyphus)
br="alt"
;;
esac esac
echo "$br" echo "$br"
} }
...@@ -97,10 +100,16 @@ epm_reposwitch() ...@@ -97,10 +100,16 @@ epm_reposwitch()
{ {
local TO="$1" local TO="$1"
[ -n "$TO" ] || fatal "run repo switch with arg (p9, p10, Sisyphus)" [ -n "$TO" ] || fatal "run repo switch with arg (p9, p10, Sisyphus)"
__replace_alt_version_in_repo "Sisyphus/" "$TO/branch/" [ "$TO" = "sisyphus" ] && TO="Sisyphus"
__replace_alt_version_in_repo "[tpc][5-9]\.?[0-9]?/branch/" "$TO/branch/" if [ "$TO" = "Sisyphus" ] ; then
if [ "$TO" != "p10" ] ; then __replace_alt_version_in_repo "[tpc][5-9]\.?[0-9]?/branch/" "$TO/"
__replace_alt_version_in_repo "p10\.?[0-9]?/branch/" "$TO/branch/" __replace_alt_version_in_repo "p10\.?[0-9]?/branch/" "$TO/"
else
__replace_alt_version_in_repo "Sisyphus/" "$TO/branch/"
__replace_alt_version_in_repo "[tpc][5-9]\.?[0-9]?/branch/" "$TO/branch/"
if [ "$TO" != "p10" ] ; then
__replace_alt_version_in_repo "p10\.?[0-9]?/branch/" "$TO/branch/"
fi
fi fi
__alt_repofix "$TO" __alt_repofix "$TO"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment