[Blends-commit] [SCM] website branch, master, updated. f56a69d6df11c88bb07c05c394b5245d9de77549

Andreas Tille tille at debian.org
Thu Oct 19 09:41:19 UTC 2017


The following commit has been merged in the master branch:
commit d0542af1520e81d290d5c224753e0d48868a0b8b
Author: Andreas Tille <tille at debian.org>
Date:   Wed Oct 18 20:30:40 2017 +0200

    Deal with non-existing field Vcs-type

diff --git a/webtools/blendstasktools_udd.py b/webtools/blendstasktools_udd.py
index d6b62cb..a2b33e5 100644
--- a/webtools/blendstasktools_udd.py
+++ b/webtools/blendstasktools_udd.py
@@ -1031,7 +1031,6 @@ class TaskDependencies:
 	#    logger.debug("=============UNKNOWN PACKAGE===============")
 	
      	for row in RowDictionaries(curs):
-	
             # seek for package name in list of packages mentioned in tasks file
             found = False
             for dep in dependencies:
@@ -1080,9 +1079,12 @@ class TaskDependencies:
                 dep.properties[prop] = row[prop]
                             
             for prop in ('type', 'url', 'browser'):
-                if row['vcs-'+prop]:
-                    vcs = dep.properties.setdefault('vcs', {})
-                    vcs[prop] = row['vcs-'+prop]
+                try:
+                    if row['vcs-'+prop]:
+                        vcs = dep.properties.setdefault('vcs', {})
+                        vcs[prop] = row['vcs-'+prop]
+                except KeyError as err:
+                    logger.warning("No Vcs-type specified for %s (%s)" % (dep.properties['name'], err))
             if 'vcs' in dep.properties:
                 vcs = dep.properties['vcs']
                 if 'browser' not in dep.properties['vcs']:

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list