From: Mark Hymers Date: Fri, 7 Nov 2014 16:43:30 +0000 (+0000) Subject: Return filesize and sha256sum too X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=d2f97cd3ef8b537c676dcc474ae1bd0ea3f9399c;p=dak.git Return filesize and sha256sum too Signed-off-by: Mark Hymers --- diff --git a/dakweb/queries/source.py b/dakweb/queries/source.py index d65283f6..298ee9dd 100644 --- a/dakweb/queries/source.py +++ b/dakweb/queries/source.py @@ -27,9 +27,11 @@ def dsc_in_suite(suite=None, source=None): q = q.filter(PoolFile.filename.endswith('.dsc')) ret = [] for p in q: - ret.append({'version': p.source.version, + ret.append({'version': p.source.version, 'component': p.poolfile.component.component_name, - 'filename': p.poolfile.filename}) + 'filename': p.poolfile.filename, + 'filesize': p.poolfile.filesize, + 'sha256sum': p.poolfile.sha256sum}) return json.dumps(ret)