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

Akshita Jha akshita-guest at users.alioth.debian.org
Fri Jul 24 19:07:04 UTC 2015


The following commit has been merged in the master branch:
commit 9bf6c7fa9535ae6b53b17f824137183471cbde02
Author: Akshita Jha <akshita-guest at users.alioth.debian.org>
Date:   Sat Jul 25 00:36:51 2015 +0530

    Modify blendstasktools_udd.py : Error handling for missing short description in english

diff --git a/webtools_py3/blendstasktools_udd.py b/webtools_py3/blendstasktools_udd.py
index db367e9..03e5ba3 100644
--- a/webtools_py3/blendstasktools_udd.py
+++ b/webtools_py3/blendstasktools_udd.py
@@ -1198,13 +1198,14 @@ class TaskDependencies:
                     dep.desc[l]['short'] = MarkupString((row['description_'+l]), dep.pkg, 'ShortDesc')
                     if row['long_description_'+l]:
                         dep.desc[l]['long']  = Markup(render_longdesc(row['long_description_'+l].splitlines()))
-                    if 'short' not in dep.desc['en']:
-                        logger.error("Dep has no English short description: %s", dep.pkg)
-                        dep.desc['en']['short'] = "??? missing short description for package %s :-(" % dep.pkg
+            
+            if 'short' not in dep.desc['en']:
+                logger.error("Dep has no English short description: %s", dep.pkg)
+                dep.desc['en']['short'] = "??? missing short description for package %s :-(" % dep.pkg
                     
-                    (_name, _url) = email.utils.parseaddr(row['maintainer'])
-                    dep.properties['maintainer'] = (row['maintainer'])
-                    dep.responsible = '<a href="mailto:%s">%s</a>' % (_url, (_name))
+            (_name, _url) = email.utils.parseaddr(row['maintainer'])
+            dep.properties['maintainer'] = (row['maintainer'])
+            dep.responsible = '<a href="mailto:%s">%s</a>' % (_url, (_name))
 
             self._AppendDependency2List(dep)
 

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list