summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-04-02 17:39:41 -0500
committerDan McGee <dan@archlinux.org>2010-04-02 17:39:41 -0500
commit5c7d507eea116d9c86216b35aadb9d181f471ccd (patch)
tree769881d7cbf7c9bb69407efb22602db9d858fbea /packages
parenta52e3901c91ea95a062004f425236ba4ee60b6e7 (diff)
Improve flag out-of-date logic
Attempt to mark all packages built from the same PKGBUILD out of date at the same time by using pkgbase instead of pkgname. Ensure testing and non-testing repos are segregated as well. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/views.py b/packages/views.py
index efb64c51..fc366988 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -273,9 +273,9 @@ def flag(request, pkgid):
if request.POST:
form = FlagForm(request.POST)
if form.is_valid() and form.cleaned_data['website'] == '':
- # flag all architectures
+ # find all packages from (hopefully) the same PKGBUILD
pkgs = Package.objects.filter(
- pkgname=pkg.pkgname, repo=pkg.repo)
+ pkgbase=pkg.pkgbase, repo__testing=pkg.repo.testing)
pkgs.update(needupdate=True)
maints = pkg.maintainers