summaryrefslogtreecommitdiff
path: root/packages/views
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-11-14 12:19:17 -0600
committerDan McGee <dan@archlinux.org>2011-11-14 12:27:38 -0600
commit12408702eaf89ea338670ba808da9ef49e35c562 (patch)
treebd68ff85cadd03f88b5d5c333d33e9f62c69a953 /packages/views
parentb7439cacf08288d8533910e08d093e9276167ed2 (diff)
Allow population of signoff specs with SVN commit messages
This pulls them from the latest SVN commit on trunk. We don't have a failproof method of getting the exact right commit, but this should be close if it is run on a regular basis via cron (aka hourly). Note that running locally, I needed the development version of South to get the migration included here to apply because of information_schema changes in the current version of MySQL. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/views')
-rw-r--r--packages/views/signoff.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/views/signoff.py b/packages/views/signoff.py
index 26b6e710..e57b4d9a 100644
--- a/packages/views/signoff.py
+++ b/packages/views/signoff.py
@@ -98,7 +98,10 @@ def _signoff_options_all(request, name, repo):
pkgver=package.pkgver, pkgrel=package.pkgrel,
epoch=package.epoch, arch=package.arch,
repo=package.repo)
+
+ if spec.user is None:
spec.user = request.user
+
form = SignoffOptionsForm(request.POST, instance=spec)
if form.is_valid():
form.save()
@@ -122,6 +125,8 @@ def signoff_options(request, name, repo, arch):
spec = SignoffSpecification(pkgbase=package.pkgbase,
pkgver=package.pkgver, pkgrel=package.pkgrel,
epoch=package.epoch, arch=package.arch, repo=package.repo)
+
+ if spec.user is None:
spec.user = request.user
if request.POST: