SVN: toys/stbr/src-builder-status.py

shadzik shadzik at pld-linux.org
Mon Dec 1 20:05:29 CET 2008


Author: shadzik
Date: Mon Dec  1 20:05:29 2008
New Revision: 10018

Modified:
   toys/stbr/src-builder-status.py
Log:
- bugfixes


Modified: toys/stbr/src-builder-status.py
==============================================================================
--- toys/stbr/src-builder-status.py	(original)
+++ toys/stbr/src-builder-status.py	Mon Dec  1 20:05:29 2008
@@ -20,20 +20,24 @@
 	except(IndexError):
 		print "Usage: %s th|ti spec" %  sys.argv[0]
 		return
+	srcbuilder = pld + "-src"
 	f = open(mailbox, 'r')
 	read = f.xreadlines()
 	for l in read:
 		l = l.strip()
 		lines.append(l)
-	for i in range(len(lines)):
+	i = 0
+	while(i < len(lines)):
 		if re.match("^From:", lines[i]):
 			Rbuilder = lines[i].split(" ")
-			builder_l.append(Rbuilder[2])
-		if re.match(spec, lines[i]):
-			status = lines[i].split(" ")
-			status_l.append(status[2])
+			if re.match(srcbuilder, Rbuilder[2]):
+				builder_l.append(Rbuilder[2])
+				i = i + 9
+				if re.match(spec, lines[i]):
+					status = lines[i].split(" ")
+					status_l.append(status[2])
+		i = i + 1
 	for i in range(len(status_l)):
-		srcbuilder = pld + "-src"
 		if re.match(srcbuilder, builder_l[i]):
 			print status_l[i]
 


More information about the pld-cvs-commit mailing list