]> err.no Git - dak/commitdiff
Fix dak admin s-a list.
authorTorsten Werner <twerner@debian.org>
Sun, 16 Jan 2011 23:41:04 +0000 (00:41 +0100)
committerTorsten Werner <twerner@debian.org>
Sun, 16 Jan 2011 23:41:04 +0000 (00:41 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
dak/admin.py

index 316b62b54d36da67b53a55c142ca3b75872b1f4c..45c55744d0c0ca99c7666cc9c0cc72504d8ab8fc 100755 (executable)
@@ -77,6 +77,7 @@ Perform administrative work on the dak database.
                             description, origin and codename are optional.
 
   suite-architecture / s-a:
+     s-a list               show the architectures for all suites
      s-a list-suite ARCH    show the suites an ARCH is in
      s-a list-arch SUITE    show the architectures in a SUITE
      s-a add SUITE ARCH     add ARCH to suite
@@ -232,9 +233,9 @@ dispatch['s'] = suite
 
 def __suite_architecture_list(d, args):
     s = d.session()
-    for j in s.query(Suite).order_by('suite_name').all():
-        print j.suite_name + ' ' + \
-              ','.join([a.architecture.arch_string for a in j.suitearchitectures])
+    for j in s.query(Suite).order_by('suite_name'):
+        print j.suite_name + ': ' + \
+              ', '.join([a.arch_string for a in j.architectures])
 
 def __suite_architecture_listarch(d, args):
     die_arglen(args, 3, "E: suite-architecture list-arch requires a suite")