diff options
-rwxr-xr-x | mga-move-update | 12 |
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" |