]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Save problem for email message.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 5 Oct 2009 15:25:01 +0000 (15:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PLD_Builder/file_sender.py -> 1.33

PLD_Builder/file_sender.py

index 10aa67107c540a7cb2932bbec68500d181cb7661..0948b060353d56d40bfc3a8be468a75c73989938 100644 (file)
@@ -97,6 +97,7 @@ def post_file(src, url):
     return 0
 
 def send_file(src, target):
+    global problem
     try:
         log.notice("sending %s to %s (size %d bytes)" % (src, target, os.stat(src).st_size))
         m = re.match('rsync://([^/]+)/.*', target)
@@ -115,6 +116,7 @@ def send_file(src, target):
             return post_file(src, target)
         log.alert("unsupported protocol: %s" % target)
     except OSError, e:
+        problem = e
         log.error("send_file(%s, %s): %s" % (src, target, e))
         return False
     return True
This page took 1.124579 seconds and 4 git commands to generate.