URL:
https://svn.lrde.epita.fr/svn/lrde-tools/trunk/buildbot/masters
ChangeLog:
2007-12-07 Alexandre Duret-Lutz <adl(a)lrde.epita.fr>
* spot_master.cfg (MyMaildirSource.parse): Handle deleted and
added files.
---
spot_master.cfg | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
Index: trunk/buildbot/masters/spot_master.cfg
===================================================================
--- trunk/buildbot/masters/spot_master.cfg (revision 481)
+++ trunk/buildbot/masters/spot_master.cfg (revision 482)
@@ -65,16 +65,17 @@
who = addr[0:addr.find('@')]
when = mktime(strptime(m.group(3), "%y/%m/%d %H:%M:%S"))
break
- while lines:
- line = lines.pop(0)
- if line == "Modified files:\n":
- files = []
- break
+ lines.pop(0)
# What changed
+ files = []
while lines:
line = lines.pop(0)
if line == "\n":
break
+ if (line == "Modified files:\n" or
+ line == "Added files:\n" or
+ line == "Removed files:\n"):
+ continue
file = line.rstrip("\n")
files.append(file)
# Why