summaryrefslogtreecommitdiff
path: root/packages/management/commands
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-04-22 10:50:03 -0500
committerDan McGee <dan@archlinux.org>2013-04-22 10:50:03 -0500
commit6fa6a8db0787fa40fa1c88b725b0bce184903c4c (patch)
treeb2cf3c23035ba994c947086f6ae5eec869f3aec3 /packages/management/commands
parent007b8d7573b64fd7f17023fa0288ba79e05683c4 (diff)
Use required_signoffs value when creating signoff specs
And respect it elsewhere when we create a fake default specification because a real one does not exist yet. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/management/commands')
-rw-r--r--packages/management/commands/populate_signoffs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/management/commands/populate_signoffs.py b/packages/management/commands/populate_signoffs.py
index 97ba4146..a9c1c81c 100644
--- a/packages/management/commands/populate_signoffs.py
+++ b/packages/management/commands/populate_signoffs.py
@@ -29,7 +29,8 @@ logging.basicConfig(
logger = logging.getLogger()
class Command(NoArgsCommand):
- help = "Pull the latest commit message from SVN for a given package that is signoff-eligible and does not have an existing comment attached"
+ help = """Pull the latest commit message from SVN for a given package that
+is signoff-eligible and does not have an existing comment attached"""
def handle_noargs(self, **options):
v = int(options.get('verbosity', None))
@@ -74,10 +75,11 @@ cached_svn_log.cache = {}
def create_specification(package, log, finder):
trimmed_message = log['message'].strip()
+ required = package.arch.required_signoffs
spec = SignoffSpecification(pkgbase=package.pkgbase,
pkgver=package.pkgver, pkgrel=package.pkgrel,
epoch=package.epoch, arch=package.arch, repo=package.repo,
- comments=trimmed_message)
+ comments=trimmed_message, required=required)
spec.user = finder.find_by_username(log['author'])
return spec