aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-11-21 20:19:23 +0000
committerNicolas Vigier <boklm@mageia.org>2011-11-21 20:19:23 +0000
commit0cad839ee6b5c76683e72d20cbac4641e3bf9529 (patch)
tree59302034efd6701976154dad92c395817e32bcb8
parent75a71063814a543336e6b26f378c69d107d563fa (diff)
downloadrepoctl-0cad839ee6b5c76683e72d20cbac4641e3bf9529.tar
repoctl-0cad839ee6b5c76683e72d20cbac4641e3bf9529.tar.gz
repoctl-0cad839ee6b5c76683e72d20cbac4641e3bf9529.tar.bz2
repoctl-0cad839ee6b5c76683e72d20cbac4641e3bf9529.tar.xz
repoctl-0cad839ee6b5c76683e72d20cbac4641e3bf9529.zip
add mirrordistro command
-rwxr-xr-xrepoctl27
1 files changed, 27 insertions, 0 deletions
diff --git a/repoctl b/repoctl
index 5ceba28..fc77bfb 100755
--- a/repoctl
+++ b/repoctl
@@ -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