/[soft]/mga-gnome/trunk/mga-gnome
ViewVC logotype

Diff of /mga-gnome/trunk/mga-gnome

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3560 by ovitters, Mon Mar 19 09:53:22 2012 UTC revision 3561 by ovitters, Mon Mar 19 09:59:13 2012 UTC
# Line 756  def cmd_parse_ftp_release_list(options, Line 756  def cmd_parse_ftp_release_list(options,
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)
# Line 820  def main(): Line 824  def main():
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:

Legend:
Removed from v.3560  
changed lines
  Added in v.3561

  ViewVC Help
Powered by ViewVC 1.1.30