summaryrefslogtreecommitdiffstats
path: root/mga-move-update
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-07-29 01:31:46 +0100
committerColin Guthrie <colin@mageia.org>2014-07-29 01:42:38 +0100
commita6432c73f660cfa196fa4ad061f789a93cd81bf4 (patch)
treeff1c0cee4bc3a51989173b36413b4c7e5219c865 /mga-move-update
parent678ea8153d78ab578535f9a1bbad41890352dfa3 (diff)
downloadmgatools-a6432c73f660cfa196fa4ad061f789a93cd81bf4.tar
mgatools-a6432c73f660cfa196fa4ad061f789a93cd81bf4.tar.gz
mgatools-a6432c73f660cfa196fa4ad061f789a93cd81bf4.tar.bz2
mgatools-a6432c73f660cfa196fa4ad061f789a93cd81bf4.tar.xz
mgatools-a6432c73f660cfa196fa4ad061f789a93cd81bf4.zip
move: Switch to non-sync by default.
All the scripts on the build server behaved this way so we may as well too.
Diffstat (limited to 'mga-move-update')
-rwxr-xr-xmga-move-update12
1 files changed, 6 insertions, 6 deletions
diff --git a/mga-move-update b/mga-move-update
index 3e29d8a..b8529c1 100755
--- a/mga-move-update
+++ b/mga-move-update
@@ -9,9 +9,9 @@ if [ "$1" = "--dry-run" ]; then
shift
fi
-nosync=
-if [ "$1" = "--no-sync" ]; then
- nosync=yes
+sync=
+if [ "$1" = "--sync" ]; then
+ sync=yes
shift
fi
@@ -29,7 +29,7 @@ if [ "$1" = "--backports" ]; then
fi
if [ $# != 3 ]; then
- echo "Usage: $0 [--dry-run] [--no-sync] [--no-confirm] [--backport <bug>] <release> <section> <src-rpm-name>" >&2
+ echo "Usage: $0 [--dry-run] [--sync] [--no-confirm] [--backport <bug>] <release> <section> <src-rpm-name>" >&2
exit 1
fi
@@ -171,7 +171,7 @@ $dryrun mv -v -f "$distribdir/$release/SRPMS/$section/$sourcesubsection/$srcpkg"
if [ -n "$dryrun" ]; then
cat "$mailcontent" "$mailcommands"
else
- if [ -n "$nosync" ]; then
+ if [ -z "$sync" ]; then
echo >>"$mailcontent"
echo "Warning: hdlist update+sync was not performed during this move" >>"$mailcontent"
echo >>"$mailcontent"
@@ -190,7 +190,7 @@ else
cat "$mailcommands" >>"$mailcontent"
/usr/bin/mailx -s "mga-move-update $release $section $srcname" -S "from=$moveupdate_mailfrom" "$moveupdate_mailto" < "$mailcontent"
- if [ -z "$nosync" ]; then
+ if [ -n "$sync" ]; then
update_distro_hdlist "$release" "$section" "$sourcesubsection"
update_distro_hdlist "$release" "$section" "$destinationsubsection"
update_common_MD5SUM "$release"