]> git.decadent.org.uk Git - dak.git/commitdiff
Return filesize and sha256sum too
authorMark Hymers <mhy@debian.org>
Fri, 7 Nov 2014 16:43:30 +0000 (16:43 +0000)
committerMark Hymers <mhy@debian.org>
Fri, 7 Nov 2014 16:43:30 +0000 (16:43 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dakweb/queries/source.py

index d65283f60d1480e624606573a291e0af1be4c6e8..298ee9dd03bc8eac30acdfe47fb7283d06656a58 100644 (file)
@@ -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)