diff options
-rw-r--r-- | packages/views/flag.py | 4 | ||||
-rw-r--r-- | templates/packages/details.html | 4 |
2 files changed, 7 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() diff --git a/templates/packages/details.html b/templates/packages/details.html index 2fb14bb8..82a2965f 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -39,11 +39,15 @@ <li><a href="unflag/all/" title="Unflag all matching pkgbase">Click here to unflag all split packages</a></li> {% endif %} {% else %} + {% if pkg.arch.name == "mips64el" or pkg.repo.name == "Libre" or pkg.repo.name = "Pcr" %} <li><a href="flag/" title="Flag {{ pkg.pkgname }} as out-of-date">Flag Package Out-of-Date</a> <a href="/packages/flaghelp/" title="Get help on package flagging" onclick="return !window.open('/packages/flaghelp/','FlagHelp', 'height=350,width=450,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no');">(?)</a></li> + {% elif pkg.arch.name == "i686" or pkg.arch.name == "x86_64" %} + <li>This package comes from arch</li> + {% endif %} {% endif %} <li><a href="download/" rel="nofollow" title="Download {{ pkg.pkgname }} from mirror">Download From Mirror</a></li> </ul> |