Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=637d098a46988c444caa2633b5596c1fce919f84

commit 637d098a46988c444caa2633b5596c1fce919f84
Author: Miklos Vajna <[email protected]>
Date:   Wed Aug 25 12:16:14 2010 +0200

syncpkgcd: upload full makepkg output in case makepkg did not create a log

this can be handy in case even pacman -Syu fails in the chroot and we
want to know what was the error message

diff --git a/syncpkgd/syncpkgcd.py b/syncpkgd/syncpkgcd.py
index af320cd..c5a7065 100644
--- a/syncpkgd/syncpkgcd.py
+++ b/syncpkgd/syncpkgcd.py
@@ -187,7 +187,12 @@ class Syncpkgcd:
buf = sock.read()
sock.close()
except IOError:
-                               buf = "No log available."
+                               try:
+                                       sock = open(self.logfile)
+                                       buf = sock.read()
+                                       sock.close()
+                               except IOError:
+                                       buf = "No makepkg log available."
try:
server.report_result(config.server_user, config.server_pass, pkg, 1, 
base64.encodestring(buf))
except socket.error:
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to