Commit fad26b67 authored by Andreas Tille's avatar Andreas Tille

Add Vcs URLs to packages in new

parent 44cb7f39
......@@ -377,6 +377,9 @@ query = """PREPARE query_new (text[]) AS SELECT
p.source, p.section, p.distribution, 'new' AS release, p.component, p.homepage,
s.changed_by,
description AS description_en, long_description AS long_description_en,
s.vcs_url AS "vcs-url",
s.vcs_type AS "vcs-type",
s.vcs_browser AS "vcs-browser",
bibyear.value AS "year",
bibtitle.value AS "title",
bibauthor.value AS "authors",
......@@ -1532,6 +1535,10 @@ class TaskDependencies:
dep.properties['version'].append({'archs':'all', 'release':'NEW',
'version':row['version']})
dep.properties['pkg-url'] = 'https://ftp-master.debian.org/new/%s_%s.html' % (row['source'], row['version'])
for prop in ('url', 'browser', 'type'):
if row['vcs-' + prop]:
vcs = dep.properties.setdefault('vcs', {})
vcs[prop] = row['vcs-' + prop]
# Warn about remaining information of prospective package
if (dep.properties['desc']['en'] and dep.properties['desc']['en']['short']) or dep.properties['homepage'] != HOMEPAGENONE:
logger.info("The package %s is not yet in Debian but it is just in the new queue. (Task %s)" % (dep.properties['name'], self.task))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment