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

Akshita Jha akshita-guest at users.alioth.debian.org
Sat Jul 25 17:12:09 UTC 2015


The following commit has been merged in the master branch:
commit 6420caf3a253faae7c3df3e6828072ad39bf13b9
Author: Akshita Jha <akshita-guest at users.alioth.debian.org>
Date:   Sat Jul 25 22:41:26 2015 +0530

    Modify blendstasktools_udd.py : Solves the error which occurs when blend names are not of the form debian-<blend> (eg: debichem, openstudio)

diff --git a/webtools_py3/blendstasktools_udd.py b/webtools_py3/blendstasktools_udd.py
index 03e5ba3..84dd03c 100644
--- a/webtools_py3/blendstasktools_udd.py
+++ b/webtools_py3/blendstasktools_udd.py
@@ -803,7 +803,10 @@ class Tasks:
         # In this case set source=1
 
         # Obtain the prefix of the meta packages of the Blend
-        prefix = self.blendname.split('-')[1] + '-'
+        try:
+            prefix = self.blendname.split('-')[1] + '-'
+        except IndexError:
+            prefix = self.blendname + '-'
         
         metapackages = []
         for task in self.metapackagekeys:
@@ -825,8 +828,6 @@ class Tasks:
             query = "EXECUTE query_metapkg_trans('%s')" % List2PgArray(metapackages)
             _execute_udd_query(query)
             if curs.rowcount > 0:
-                #curs.execute("show client_encoding")
-                #print(curs.fetchone()[0])
                 for row in RowDictionaries(curs):
                     metapkg_translations[row['package']] = row
 

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list