summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2009-04-13 22:11:10 -0400
committerDusty Phillips <buchuki@gmail.com>2009-04-13 22:14:53 -0400
commitbb93f05f56f2b22a662f85736549a72735864b20 (patch)
tree0426384992ef3845ce86121f8782232b9e25f3be /packages
parenta9fd048f5499529a264ac7bf3ea52a14e1cbd97e (diff)
downloadarchweb-bb93f05f56f2b22a662f85736549a72735864b20.tar.gz
archweb-bb93f05f56f2b22a662f85736549a72735864b20.zip
FS#11325. Add a 'Target Repo' column to the signoffs page.
Diffstat (limited to 'packages')
-rw-r--r--packages/views.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py
index e986409c..49ab9a0a 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -151,8 +151,17 @@ def unflag(request, pkgid):
def signoffs(request):
packages = Package.objects.filter(repo__name="Testing").order_by("pkgname")
+ package_list = []
+ other_packages = Package.objects.exclude(repo__name="Testing")
+ for package in packages:
+ other_package = other_packages.filter(pkgname=package.pkgname)
+ if len(other_package):
+ repo = other_package[0].repo.name
+ else:
+ repo = "Unknown"
+ package_list.append((package, repo))
return render_to_response('packages/signoffs.html',
- RequestContext(request, {'packages': packages}))
+ RequestContext(request, {'packages': package_list}))
def signoff_package(request, arch, pkgname):
pkg = get_object_or_404(Package,