[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Return filesize and sha256sum too



Signed-off-by: Mark Hymers <mhy@debian.org>
---
 dakweb/queries/source.py |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dakweb/queries/source.py b/dakweb/queries/source.py
index d65283f..298ee9d 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)
 
-- 
1.7.10.4


Reply to: