diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-11-21 19:55:03 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-11-21 19:55:03 +0000 |
commit | 75a71063814a543336e6b26f378c69d107d563fa (patch) | |
tree | 380f45b2a768d305e754d80064ad1bd8b6e83efc | |
parent | 33b0276c95e85218c381b5c4edc66f787e1f72ce (diff) | |
download | repoctl-75a71063814a543336e6b26f378c69d107d563fa.tar repoctl-75a71063814a543336e6b26f378c69d107d563fa.tar.gz repoctl-75a71063814a543336e6b26f378c69d107d563fa.tar.bz2 repoctl-75a71063814a543336e6b26f378c69d107d563fa.tar.xz repoctl-75a71063814a543336e6b26f378c69d107d563fa.zip |
check if distribution exist in mirror_repository function
-rw-r--r-- | functions | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -223,6 +223,11 @@ function update_common_MD5SUM() function mirror_repository() { local distrorelease="$1" + if ! inlist "$distrorelease" "$distroreleases" + then + echo "Incorrect distrorelease $distrorelease" >&2 + exit 1 + fi get_distro_lock "$distrorelease" update_common_MD5SUM "$distrorelease" $dryrun /usr/bin/rsync $mirror_rsync_options "$distribdir/$distrorelease/" "$finaldistribdir/$distrorelease/" |