changeset 181:941ea8544756

see the damn rev
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 01 Feb 2011 11:45:05 -0800
parents d7e79194e971
children 13293c35f162
files autobot/changes/poller.py
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/changes/poller.py	Tue Feb 01 11:02:20 2011 -0800
+++ b/autobot/changes/poller.py	Tue Feb 01 11:45:05 2011 -0800
@@ -99,12 +99,17 @@
         def processCommand(command):
             d = utils.getProcessOutputAndValue(self.binary,
                     command, env=dict(PATH=os.environ['PATH']))
-            d.addCallback(self._convert_nonzero_to_failure)
-            d.addErrback(self._stop_on_failure)
+#            d.addCallback(self._convert_nonzero_to_failure)
+#            d.addErrback(self._stop_on_failure)
             return d
         for command in self.initializationCommands():
+            self.log('%s %s' % (self.binary, ' '.join(command)))
             d.addCallback(lambda _: processCommand(command[:]))
-
+            # XXX for some retarded reason, only the first one of these
+            # seems actually to get called
+            # i don't know....all i do know is that i'm tired of writing
+            # twisted code
+ 
         # finish up
         def log_finished(_):
             log.msg("%s: finished initializing working dir %s from %s" % (self.name, self.workdir, self.repourl))