From 80cd33c6b90148fc4541dce6da39f48a00c28b62 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Mon, 17 Jan 2011 00:41:04 +0100 Subject: [PATCH] Fix dak admin s-a list. Signed-off-by: Torsten Werner --- dak/admin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dak/admin.py b/dak/admin.py index 316b62b5..45c55744 100755 --- a/dak/admin.py +++ b/dak/admin.py @@ -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") -- 2.39.5