/[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 3566 by ovitters, Mon Mar 19 09:59:13 2012 UTC revision 3567 by ovitters, Mon Mar 19 13:11:44 2012 UTC
# Line 695  def cmd_parse_ftp_release_list(options, Line 695  def cmd_parse_ftp_release_list(options,
695          if error:          if error:
696              # XXX - ugly              # XXX - ugly
697              contents.seek(0)              contents.seek(0)
698              lastline = contents.read().splitlines()[-1]              lastline = contents.read().rstrip().splitlines()[-1]
699              # Remove things like "ERROR: " and so on from the last line              # Remove things like "ERROR: " and so on from the last line
700              lastline = re.sub(r'^(?:[^ :]+:\s+)+', '', lastline)              lastline = re.sub(r'^(?:[^ :]+:\s+)+', '', lastline)
701              subjecterror = " (ERROR: %s)" % lastline if lastline else " (ERROR)"              subjecterror = " (ERROR: %s)" % lastline if lastline else " (ERROR)"
# Line 850  def main(): Line 850  def main():
850          sys.exit(0)          sys.exit(0)
851    
852  if __name__ == "__main__":  if __name__ == "__main__":
853        os.environ['PYTHONUNBUFFERED'] = '1'
854      main()      main()

Legend:
Removed from v.3566  
changed lines
  Added in v.3567

  ViewVC Help
Powered by ViewVC 1.1.30