[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.42-14-g5c2eadd
Andreas Beckmann
debian at abeckmann.de
Mon Jan 9 17:10:55 UTC 2012
The following commit has been merged in the piatti branch:
commit 5c2eaddc5c6ec6d6a08348b93dc4fa40e6856ac4
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Sun Jan 8 19:09:54 2012 +0100
correctly split comma+space separated lists
correctly split lists that are separated by '\s*,\s*':
it's insufficient to split on ', ' (there may be no space or a
newline instead), instead split on ',' and strip afterwards
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/piuparts-report.py b/piuparts-report.py
index babda2e..8925fc5 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -651,8 +651,8 @@ class Section:
def link_to_uploaders(self, uploaders):
link = ""
- for uploader in uploaders.split(", "):
- link += self.link_to_maintainer_summary(uploader)+", "
+ for uploader in uploaders.split(","):
+ link += self.link_to_maintainer_summary(uploader.strip()) + ", "
return link[:-2]
def link_to_source_summary(self, package_name):
@@ -788,7 +788,7 @@ class Section:
success = True
failed = False
binaryrows = ""
- for binary in sorted(binaries.split(", ")):
+ for binary in sorted([x.strip() for x in binaries.split(",") if x.strip()]):
state = self._binary_db.get_package_state(binary)
if state == "unknown":
# Don't track udebs and binary packages on other archs.
--
piuparts git repository
More information about the Piuparts-commits
mailing list