Commit 59451872 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repo: improve help

parent 480620ad
...@@ -78,6 +78,9 @@ __epm_addrepo_altsp() ...@@ -78,6 +78,9 @@ __epm_addrepo_altsp()
local comp local comp
local repo="$1" local repo="$1"
case "$repo" in case "$repo" in
c10f1)
comp="CF3"
;;
c9f2) c9f2)
comp="CF2" comp="CF2"
;; ;;
...@@ -169,8 +172,8 @@ cat <<EOF ...@@ -169,8 +172,8 @@ cat <<EOF
epm repo add - add branch repo. Use follow params: epm repo add - add branch repo. Use follow params:
basealt - for BaseALT repo" basealt - for BaseALT repo"
yandex - for BaseALT repo mirror hosted by Yandex (recommended)"
altsp - add ALT SP repo" altsp - add ALT SP repo"
yandex - for BaseALT repo mirror hosted by Yandex (recommended)"
autoimports - for BaseALT autoimports repo" autoimports - for BaseALT autoimports repo"
autoports - for Autoports repo (with packages from Sisyphus rebuilt to the branch) autoports - for Autoports repo (with packages from Sisyphus rebuilt to the branch)
altlinuxclub - for altlinuxclub repo (http://altlinuxclub.ru/)" altlinuxclub - for altlinuxclub repo (http://altlinuxclub.ru/)"
...@@ -292,7 +295,7 @@ __epm_addrepo_altlinux() ...@@ -292,7 +295,7 @@ __epm_addrepo_altlinux()
fi fi
case "$repo" in case "$repo" in
c9f2|c9f1|c9) c10f*|c9f*|c9)
__epm_addrepo_altsp "$repo" __epm_addrepo_altsp "$repo"
return return
;; ;;
......
...@@ -23,8 +23,10 @@ epm_repo_help() ...@@ -23,8 +23,10 @@ epm_repo_help()
{ {
get_help HELPCMD $SHAREDIR/epm-repo get_help HELPCMD $SHAREDIR/epm-repo
cat <<EOF cat <<EOF
Examples: Examples:
epm repo set p9 epm repo set p9
epm repo switch p10
epm repo add autoimports epm repo add autoimports
epm repo list epm repo list
epm repo change yandex epm repo change yandex
...@@ -40,14 +42,10 @@ epm_repo() ...@@ -40,14 +42,10 @@ epm_repo()
"-h"|"--help"|help) # HELPCMD: help "-h"|"--help"|help) # HELPCMD: help
epm_repo_help epm_repo_help
;; ;;
""|list) # HELPCMD: list packages ""|list) # HELPCMD: list enabled repositories (-a|--all for list disabled repositorires too)
load_helper epm-repolist load_helper epm-repolist
epm_repolist "$@" epm_repolist "$@"
;; ;;
fix) # HELPCMD: fix paths in sources lists (ALT Linux only)
load_helper epm-repofix
epm_repofix "$@"
;;
change) # HELPCMD: <mirror>: switch sources to the mirror (supports etersoft/yandex/basealt): rewrite URLs to the specified server change) # HELPCMD: <mirror>: switch sources to the mirror (supports etersoft/yandex/basealt): rewrite URLs to the specified server
load_helper epm-repofix load_helper epm-repofix
epm_repofix "$@" epm_repofix "$@"
...@@ -56,7 +54,7 @@ epm_repo() ...@@ -56,7 +54,7 @@ epm_repo()
epm repo rm all epm repo rm all
epm addrepo "$@" epm addrepo "$@"
;; ;;
switch) # HELPCMD: switch repo to <repo>: rewrite URLs to the repo switch) # HELPCMD: switch repo to <repo>: rewrite URLs to the repo (but use epm release-upgrade [Sisyphus|p10] for upgrade to a next branch)
load_helper epm-repofix load_helper epm-repofix
epm_reposwitch "$@" epm_reposwitch "$@"
;; ;;
...@@ -68,11 +66,12 @@ epm_repo() ...@@ -68,11 +66,12 @@ epm_repo()
load_helper epm-repodisable load_helper epm-repodisable
epm_repodisable "$@" epm_repodisable "$@"
;; ;;
addkey) # HELPCMD: add repository gpg key (by URL or file) addkey) # HELPCMD: add repository gpg key (by URL or file) (run with --help to detail)
load_helper epm-repo-addkey load_helper epm-repo-addkey
epm_addkey "$@" epm_addkey "$@"
;; ;;
clean) # HELPCMD: remove temp. repos (tasks and CD-ROMs) clean) # HELPCMD: remove temp. repos (tasks and CD-ROMs)
[ "$BASEDISTRNAME" = "alt" ] || fatal "TODO: only ALT now is supported"
# TODO: check for ALT # TODO: check for ALT
sudocmd apt-repo $dryrun clean sudocmd apt-repo $dryrun clean
;; ;;
...@@ -84,11 +83,11 @@ epm_repo() ...@@ -84,11 +83,11 @@ epm_repo()
load_helper epm-reposave load_helper epm-reposave
epm_reporestore "$@" epm_reporestore "$@"
;; ;;
reset) reset) # HELPCMD: reset repo lists to the distro default
load_helper epm-reposave load_helper epm-reposave
epm_reporeset "$@" epm_reporeset "$@"
;; ;;
status) status) # HELPCMD: print repo status
load_helper epm-reposave load_helper epm-reposave
epm_repostatus "$@" epm_repostatus "$@"
;; ;;
...@@ -105,12 +104,17 @@ epm_repo() ...@@ -105,12 +104,17 @@ epm_repo()
load_helper epm-removerepo load_helper epm-removerepo
epm_removerepo "$@" epm_removerepo "$@"
;; ;;
fix) # HELPCMD: fix paths in sources lists (ALT Linux only)
load_helper epm-repofix
epm_repofix "$@"
;;
# HELPCMD: PART: Local repo commands:
create) # HELPCMD: create (initialize) repo: [path] [name] create) # HELPCMD: create (initialize) repo: [path] [name]
load_helper epm-repoindex load_helper epm-repoindex
epm_repocreate "$@" epm_repocreate "$@"
;; ;;
index) # HELPCMD: index repo: [--init] [path] [name] index) # HELPCMD: index repo (update indexes): [--init] [path] [name]
load_helper epm-repoindex load_helper epm-repoindex
epm_repoindex "$@" epm_repoindex "$@"
;; ;;
......
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