summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/views.py b/packages/views.py
index 56c4f7d1..d482c69d 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -258,9 +258,7 @@ def flag(request, pkgid):
# flag all architectures
pkgs = Package.objects.filter(
pkgname=pkg.pkgname, repo=pkg.repo)
- for package in pkgs:
- package.needupdate = 1
- package.save()
+ pkgs.update(needupdate=True)
if not pkg.maintainer:
toemail = 'arch-notifications@archlinux.org'