aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-10-28 17:26:50 +0000
committerNicolas Vigier <boklm@mageia.org>2011-10-28 17:26:50 +0000
commit0526dbdae627fbafcfb3c895b7206a7c982c7e05 (patch)
tree612c0ad8ce15cbbff0028b6f3677f605dde85ad9 /functions
parent091a57224f25f363df9325a3a0abb033b5facaca (diff)
downloadrepoctl-0526dbdae627fbafcfb3c895b7206a7c982c7e05.tar
repoctl-0526dbdae627fbafcfb3c895b7206a7c982c7e05.tar.gz
repoctl-0526dbdae627fbafcfb3c895b7206a7c982c7e05.tar.bz2
repoctl-0526dbdae627fbafcfb3c895b7206a7c982c7e05.tar.xz
repoctl-0526dbdae627fbafcfb3c895b7206a7c982c7e05.zip
lock before mirroring
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions b/functions
index 0615249..03c4a88 100644
--- a/functions
+++ b/functions
@@ -169,8 +169,10 @@ function update_common_MD5SUM()
function mirror_repository()
{
local distrorelease="$1"
+ get_distro_lock "$distrorelease"
update_common_MD5SUM "$distrorelease"
$dryrun /usr/bin/rsync $mirror_rsync_options "$distribdir/$distrorelease/" "$finaldistribdir/$distrorelease/"
+ rm_distro_lock "$distrorelease"
}
function check_distro_section()