changeset 112:5b26c2d4710e

actually return something
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 22 Jan 2011 17:50:48 -0800
parents 9c12340ec614
children 5fd588ba6ff9
files autobot/changes/poller.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/changes/poller.py	Sat Jan 22 17:46:36 2011 -0800
+++ b/autobot/changes/poller.py	Sat Jan 22 17:50:48 2011 -0800
@@ -202,6 +202,7 @@
                 % (self.name, self.changeCount, revList, self.workdir) )
 
         # get metadata for changes and send them to master
+        d = defer.succeed(None)
         for rev in revList:
             self.commitInfo = {}
 
@@ -215,6 +216,8 @@
 
             # add the change, apparently
             dl.addCallback(self._add_change, rev)
+            d.addCallback(dl)
+        return d
 
     def _add_change(self, change):
         log.msg("_add_change results")