summaryrefslogtreecommitdiff
path: root/packages/views
diff options
context:
space:
mode:
Diffstat (limited to 'packages/views')
-rw-r--r--packages/views/__init__.py5
-rw-r--r--packages/views/flag.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/packages/views/__init__.py b/packages/views/__init__.py
index 63942474..9ca21407 100644
--- a/packages/views/__init__.py
+++ b/packages/views/__init__.py
@@ -239,14 +239,15 @@ def download(request, name, repo, arch):
def arch_differences(request):
# TODO: we have some hardcoded magic here with respect to the arches.
- arch_a = Arch.objects.get(name='i686')
- arch_b = Arch.objects.get(name='x86_64')
+ arch_a = Arch.objects.get(name=request.GET.get('arch_a', 'i686'))
+ arch_b = Arch.objects.get(name=request.GET.get('arch_b', 'x86_64'))
differences = get_differences_info(arch_a, arch_b)
multilib_diffs = multilib_differences()
context = {
'arch_a': arch_a,
'arch_b': arch_b,
'differences': differences,
+ 'arches': Arch.objects.filter(agnostic=False),
'multilib_differences': multilib_diffs
}
return direct_to_template(request, 'packages/differences.html', context)
diff --git a/packages/views/flag.py b/packages/views/flag.py
index 8879695c..ad1b04db 100644
--- a/packages/views/flag.py
+++ b/packages/views/flag.py
@@ -99,7 +99,7 @@ def flag(request, name, repo, arch):
})
send_mail(subject,
tmpl.render(ctx),
- 'Arch Website Notification <nobody@archlinux.org>',
+ 'Parabola Website Notification <nobody@parabolagnulinux.org>',
toemail,
fail_silently=True)