summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2013-08-26 04:16:13 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2013-08-26 04:16:13 -0500
commit142730248c8e5f2a243393192aa15ebad6d52a7b (patch)
tree497f357d8313dd9fe08b2bdfaa21930431b9f3bc /packages
parent51cbd72b4a9833dc715c1abad5eaf925f6c8e492 (diff)
Remove flag as outdate links to packages from arch
Diffstat (limited to 'packages')
-rw-r--r--packages/views/flag.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/views/flag.py b/packages/views/flag.py
index 69ca3c9f..ae6b03f9 100644
--- a/packages/views/flag.py
+++ b/packages/views/flag.py
@@ -5,6 +5,7 @@ from django.conf import settings
from django.contrib.auth.decorators import permission_required
from django.core.mail import EmailMessage
from django.db import transaction
+from django.db.models import Q
from django.shortcuts import get_object_or_404, redirect, render
from django.template import loader, Context
from django.utils.timezone import now
@@ -58,7 +59,8 @@ def flag(request, name, repo, arch):
pkgs = Package.objects.normal().filter(
pkgbase=pkg.pkgbase, flag_date__isnull=True,
repo__testing=pkg.repo.testing,
- repo__staging=pkg.repo.staging).order_by(
+ repo__staging=pkg.repo.staging).filter(
+ Q(arch__name='mips64el') | Q(repo__name='Libre') | Q(repo__name='Pcr')).order_by(
'pkgname', 'repo__name', 'arch__name')
authenticated = request.user.is_authenticated()