summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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/"
}