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

epm repo change: add --list

parent 1219c6bb
...@@ -29,7 +29,7 @@ Examples: ...@@ -29,7 +29,7 @@ Examples:
epm repo set c10f1 - clean all sources and add default repo for c10f1 branch epm repo set c10f1 - clean all sources and add default repo for c10f1 branch
epm repo switch p10 - change only branch name to p10 epm repo switch p10 - change only branch name to p10
epm repo add autoimports - add autoimports (from Fedora) repo epm repo add autoimports - add autoimports (from Fedora) repo
epm repo change yandex - change only base url part to mirror.yandex.ru server epm repo change yandex - change only base url part to mirror.yandex.ru server (use epm repo change --list to get possible targets)
epm repo list - list current repos epm repo list - list current repos
' '
} }
......
...@@ -210,6 +210,9 @@ __change_repo() ...@@ -210,6 +210,9 @@ __change_repo()
__epm_repochange_alt() __epm_repochange_alt()
{ {
case "$1" in case "$1" in
"--list")
echo "Possible targets: etersoft eterfund.org yandex basealt altlinux.org"
;;
"etersoft") "etersoft")
__change_repo etersoft "//download.etersoft.ru/pub ALTLinux" __change_repo etersoft "//download.etersoft.ru/pub ALTLinux"
;; ;;
...@@ -238,7 +241,7 @@ epm_repochange() ...@@ -238,7 +241,7 @@ epm_repochange()
epm_repofix epm_repofix
case $BASEDISTRNAME in case $BASEDISTRNAME in
"alt") "alt")
__epm_repochange_alt "$1" __epm_repochange_alt "$@"
;; ;;
*) *)
fatal 'Repo change Unsupported for $BASEDISTRNAME' fatal 'Repo change Unsupported for $BASEDISTRNAME'
......
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