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

Ole Streicher olebole at debian.org
Sat Mar 19 22:05:04 UTC 2016


The following commit has been merged in the master branch:
commit d6a4acc3f124d65be937791401245dfab0daccc3
Author: Ole Streicher <olebole at debian.org>
Date:   Sat Mar 19 22:55:50 2016 +0100

    Move releases to properties

diff --git a/webtools/blendstasktools.py b/webtools/blendstasktools.py
index f8f0a34..2ec5e5c 100644
--- a/webtools/blendstasktools.py
+++ b/webtools/blendstasktools.py
@@ -721,7 +721,6 @@ class DependantPackage:
         self.blendname      = blendname  # Blend that includes the package in dependency list
         self.taskname       = taskname   # Task which includes the Dependency
         self.pkg            = None  # Name of dependant package
-        self.releases       = []    # List of releases a package might be in
         self.properties     = {}
         self.properties['license']     = 'unknown'
         self.properties['pkgstatus']     = 'unknown'
@@ -755,8 +754,6 @@ class DependantPackage:
               "pkg:"    + self.pkg
         if self.dep_strength:
             ret += ", Dep_strength: " + self.dep_strength
-        if self.releases:
-            ret += ", releases: "     + str(self.releases)
         if self.desc:
             ret += ", desc: "         + str(self.desc)
         for prop in self.properties:
@@ -1750,7 +1747,7 @@ class TaskDependencies:
         _execute_udd_query(query)
         has_official = 0
         for rel in curs.fetchall():
-            self.releases.append(rel[0])
+            self.properties.setdefault('releases', []).append(rel[0])
             if rel[0] != 'experimental':
                 has_official = 1
 
diff --git a/webtools/blendstasktools_udd.py b/webtools/blendstasktools_udd.py
index 726bb18..4da5f7e 100644
--- a/webtools/blendstasktools_udd.py
+++ b/webtools/blendstasktools_udd.py
@@ -678,7 +678,6 @@ class DependantPackage:
         self.taskname       = taskname   # Task which includes the Dependency
         self.pkg            = None  # Name of dependant package
         self.source         = None  # Name of source package of the dependency
-        self.releases       = []    # List of releases a package might be in
         self.properties     = {}
         self.properties['license']     = 'unknown'
         self.properties['pkgstatus']   = 'unknown'
@@ -716,8 +715,6 @@ class DependantPackage:
               "pkg:"    + self.pkg
         if self.dep_strength:
             ret += ", Dep_strength: " + self.dep_strength
-        if self.releases:
-            ret += ", releases: "     + str(self.releases)
         if self.desc:
             ret += ", desc: "         + str(self.desc)
         for prop in self.properties:

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list