From a6432c73f660cfa196fa4ad061f789a93cd81bf4 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 29 Jul 2014 01:31:46 +0100 Subject: move: Switch to non-sync by default. All the scripts on the build server behaved this way so we may as well too. --- mga-move-update | 12 ++++++------ 1 file 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 ]
" >&2 + echo "Usage: $0 [--dry-run] [--sync] [--no-confirm] [--backport ]
" >&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" -- cgit v1.2.1