Commit d1bf0476 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repofix: cleanup repo change list

parent f5c6830e
...@@ -199,8 +199,7 @@ __subst_with_repo_url() ...@@ -199,8 +199,7 @@ __subst_with_repo_url()
__change_repo() __change_repo()
{ {
local SHORT="$1" local REPLTO="$1"
local REPLTO="$2"
local NN local NN
epm --quiet repo list | grep -v "file:/" | while read nn ; do epm --quiet repo list | grep -v "file:/" | while read nn ; do
NN="$(__subst_with_repo_url "$nn" "$REPLTO")" NN="$(__subst_with_repo_url "$nn" "$REPLTO")"
...@@ -214,31 +213,31 @@ __epm_repochange_alt() ...@@ -214,31 +213,31 @@ __epm_repochange_alt()
{ {
case "$1" in case "$1" in
"--list") "--list")
echo "Possible targets: etersoft eterfund.org yandex basealt altlinux.org" echo "Possible targets: etersoft datacenter.by truenetwork msu eterfund.org yandex basealt altlinux.org"
;; ;;
"etersoft") "etersoft")
__change_repo etersoft "//download.etersoft.ru/pub ALTLinux" __change_repo "//download.etersoft.ru/pub ALTLinux"
;; ;;
"datacenter") "datacenter.by")
__change_repo etersoft "//mirror.datacenter.by/pub ALTLinux" __change_repo "//mirror.datacenter.by/pub ALTLinux"
;; ;;
"truenetwork") "truenetwork")
__change_repo etersoft "//mirror.truenetwork.ru altlinux" __change_repo "//mirror.truenetwork.ru altlinux"
;; ;;
"msu") "msu")
__change_repo etersoft "//mirror.cs.msu.ru alt" __change_repo "//mirror.cs.msu.ru alt"
;; ;;
"eterfund.org") "eterfund.org")
__change_repo eterfund.org "//mirror.eterfund.org/download.etersoft.ru/pub ALTLinux" __change_repo "//mirror.eterfund.org/download.etersoft.ru/pub ALTLinux"
;; ;;
"yandex") "yandex")
__change_repo mirror.yandex "//mirror.yandex.ru altlinux" __change_repo "//mirror.yandex.ru altlinux"
;; ;;
"basealt") "basealt")
__change_repo ftp.basealt "//ftp.basealt.ru/pub/distributions ALTLinux" __change_repo "//ftp.basealt.ru/pub/distributions ALTLinux"
;; ;;
"altlinux.org") "altlinux.org")
__change_repo ftp.altlinux "//ftp.altlinux.org/pub/distributions ALTLinux" __change_repo "//ftp.altlinux.org/pub/distributions ALTLinux"
;; ;;
*) *)
fatal 'Unsupported change key $1' fatal 'Unsupported change key $1'
......
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