summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-08-04 10:54:32 +0100
committerColin Guthrie <colin@mageia.org>2014-08-04 10:54:32 +0100
commitd75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d (patch)
treec492251fe559b37acbec1939f253d3efd7ccfd12
parentc5b0de9b8f4cce32cdfefc55dedafefaee60df9d (diff)
downloadmgatools-d75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d.tar
mgatools-d75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d.tar.gz
mgatools-d75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d.tar.bz2
mgatools-d75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d.tar.xz
mgatools-d75bbfc3543a48b3b6a47ff5d4e2ca9a2f10c96d.zip
move: Add in a little bit more validation
-rw-r--r--functions10
1 files changed, 10 insertions, 0 deletions
diff --git a/functions b/functions
index 7f5f63c..97ffbec 100644
--- a/functions
+++ b/functions
@@ -93,6 +93,11 @@ function update_distro_hdlist()
function update_common_MD5SUM()
{
+ if [ "$1" = "--nocheck" ]; then
+ shift
+ else
+ valid_release "$1" || return 1
+ fi
local release="$1"
for arch in $arches; do
pushd "$distribdir/$release/$arch/media/media_info"
@@ -103,6 +108,11 @@ function update_common_MD5SUM()
function mirror_repository()
{
+ if [ "$1" = "--nocheck" ]; then
+ shift
+ else
+ valid_release "$1" || return 1
+ fi
local release="$1"
/usr/bin/rsync $mirror_rsync_options "$distribdir/$release/" "$finaldistribdir/$release/"
}