changeset 345:27eccce96949

added sanity check if debian package description contains a dependency with a last ,
author Bjoern Ricks <bricks@intevation.de>
date Mon, 26 Apr 2010 09:33:58 +0000
parents f06f707d9fda
children 9cb4ed04434f
files treepkg/debian.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/debian.py	Fri Apr 23 07:43:29 2010 +0000
+++ b/treepkg/debian.py	Mon Apr 26 09:33:58 2010 +0000
@@ -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:")
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)