[Blends-commit] r3341 - /blends/trunk/webtools/blendstasktools.py

tille at users.alioth.debian.org tille at users.alioth.debian.org
Mon May 21 13:37:35 UTC 2012


Author: tille
Date: Mon May 21 13:37:34 2012
New Revision: 3341

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=3341
Log:
Use properly verified Vcs fields from blends-prospective table rather than from tasks file

Modified:
    blends/trunk/webtools/blendstasktools.py

Modified: blends/trunk/webtools/blendstasktools.py
URL: http://svn.debian.org/wsvn/blends/blends/trunk/webtools/blendstasktools.py?rev=3341&op=diff
==============================================================================
--- blends/trunk/webtools/blendstasktools.py (original)
+++ blends/trunk/webtools/blendstasktools.py Mon May 21 13:37:34 2012
@@ -357,6 +357,9 @@
                    p.source, p.section, 'vcs' AS release, p.component, p.homepage,
                    p.changed_by, p.chlog_version AS version,
                    description AS description_en, long_description AS long_description_en,
+                   p.vcs_url     AS "vcs-url",
+                   p.vcs_type    AS "vcs-type",
+                   p.vcs_browser AS "vcs-browser",
                    p.blend
                    FROM blends_prospectivepackages p
                    WHERE package = ANY ($1)"""
@@ -1686,6 +1689,8 @@
                     logger.info("The package %s is not yet in Debian but it is just in Blends %s Vcs. (Task %s)" % (dep.pkg, row['blend'], dep.taskname))
                 for prop in PROPERTIES:
                     dep.properties[prop] = row[prop]
+                for prop in ('vcs-url', 'vcs-browser', 'vcs-type'):
+                    dep.properties[prop] = row[prop]
                 dep.desc['en']['short'] = MarkupString(to_unicode(row['description_en']), dep.pkg, 'ShortDesc - New')
                 dep.desc['en']['long']  = Markup(render_longdesc(row['long_description_en'].splitlines()))
                 (_name, _url) = email.Utils.parseaddr(row['maintainer'])




More information about the Blends-commit mailing list