756 |
|
|
757 |
error = False |
error = False |
758 |
for package in packages: |
for package in packages: |
759 |
if subprocess.call(['mga-gnome', 'increase', '--submit', '--hash', hexdigest, package, version], stdout=stdout, stderr=stderr): |
cmd = ['mga-gnome', 'increase', '--submit', '--hash', hexdigest] |
760 |
|
if options.force: |
761 |
|
cmd.append('--force') |
762 |
|
cmd.extend((package, version)) |
763 |
|
if subprocess.call(cmd, stdout=stdout, stderr=stderr): |
764 |
error = True |
error = True |
765 |
|
|
766 |
if options.mail: _send_reply_mail(stdout, msg, options.mail, error=error) |
if options.mail: _send_reply_mail(stdout, msg, options.mail, error=error) |
824 |
subparser.add_argument("-m", "--mail", help="Email address to send the progress to") |
subparser.add_argument("-m", "--mail", help="Email address to send the progress to") |
825 |
subparser.add_argument("-w", "--wait", action="store_true", |
subparser.add_argument("-w", "--wait", action="store_true", |
826 |
help="Wait before trying to retrieve the new version") |
help="Wait before trying to retrieve the new version") |
827 |
|
subparser.add_argument("-f", "--force", action="store_true", |
828 |
|
help="Force submission") |
829 |
subparser.set_defaults( |
subparser.set_defaults( |
830 |
func=cmd_parse_ftp_release_list |
func=cmd_parse_ftp_release_list, force=False, wait=False |
831 |
) |
) |
832 |
|
|
833 |
if len(sys.argv) == 1: |
if len(sys.argv) == 1: |