The following commit has been merged in the master branch:
commit d0542af1520e81d290d5c224753e0d48868a0b8b
Author: Andreas Tille <[email protected]>
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

_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to