[or-cvs] r21138: {projects} Use the first package the user has in his mail, ignore the r (projects/gettor/lib/gettor)

kaner at seul.org kaner at seul.org
Wed Dec 9 16:36:23 UTC 2009


Author: kaner
Date: 2009-12-09 11:36:23 -0500 (Wed, 09 Dec 2009)
New Revision: 21138

Modified:
   projects/gettor/lib/gettor/requests.py
Log:
Use the first package the user has in his mail, ignore the rest


Modified: projects/gettor/lib/gettor/requests.py
===================================================================
--- projects/gettor/lib/gettor/requests.py	2009-12-09 16:31:16 UTC (rev 21137)
+++ projects/gettor/lib/gettor/requests.py	2009-12-09 16:36:23 UTC (rev 21138)
@@ -92,8 +92,9 @@
             # XXX: Actually we should rather read the whole body into a string
             #      and strip that. -kaner
             line = self.stripTags(line)
-            # Check for package name in line
-            self.matchPackage(line)
+            # Check for package name in line only if we have none yet
+            if self.returnPackage is Nonw:
+                self.matchPackage(line)
             # Check for split delivery in line
             self.matchSplit(line)
             # Check if this is a command



More information about the tor-commits mailing list