[Treepkg-commits] r300 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Apr 26 11:33:58 CEST 2010
Author: bricks
Date: 2010-04-26 11:33:58 +0200 (Mon, 26 Apr 2010)
New Revision: 300
Modified:
trunk/treepkg/debian.py
Log:
added sanity check if debian package description contains a dependency with a last ,
Modified: trunk/treepkg/debian.py
===================================================================
--- trunk/treepkg/debian.py 2010-04-23 07:43:29 UTC (rev 299)
+++ trunk/treepkg/debian.py 2010-04-26 09:33:58 UTC (rev 300)
@@ -64,7 +64,9 @@
def handle_source_paragraph(self, paragraph):
raw_deps = extract_value_for_key(paragraph, "Build-Depends:")
for dep in raw_deps.split(","):
- self.build_depends.append(dep.split()[0])
+ # sanity check
+ if dep.strip() != "":
+ self.build_depends.append(dep.split()[0])
def handle_package_paragraph(self, paragraph):
package_name = extract_value_for_key(paragraph, "Package:")
More information about the Treepkg-commits
mailing list