diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-11-21 20:19:23 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-11-21 20:19:23 +0000 |
commit | 0cad839ee6b5c76683e72d20cbac4641e3bf9529 (patch) | |
tree | 59302034efd6701976154dad92c395817e32bcb8 | |
parent | 75a71063814a543336e6b26f378c69d107d563fa (diff) | |
download | repoctl-0cad839ee6b5c76683e72d20cbac4641e3bf9529.tar repoctl-0cad839ee6b5c76683e72d20cbac4641e3bf9529.tar.gz repoctl-0cad839ee6b5c76683e72d20cbac4641e3bf9529.tar.bz2 repoctl-0cad839ee6b5c76683e72d20cbac4641e3bf9529.tar.xz repoctl-0cad839ee6b5c76683e72d20cbac4641e3bf9529.zip |
add mirrordistro command
-rwxr-xr-x | repoctl | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -83,6 +83,14 @@ Options: EOF ;; + mirrordistro) + cat <<EOF +Usage: mirrordistro distrorelease + +Mirror the distribution tree to the main mirror. +EOF + ;; + esac } @@ -304,6 +312,21 @@ function genhdlists() fi } +function mirrordistro() +{ + if [ $# != 1 ] + then + usage_cmd mirrordistro + exit 1 + fi + if [ "$1" = "--help" ] + then + usage_cmd mirrordistro + else + mirror_repository "$1" + fi +} + function usage() { cat <<EOF @@ -352,6 +375,10 @@ case "$1" in shift genhdlists $@ ;; + mirrordistro) + shift + mirrordistro $@ + ;; *) usage exit 1 |