summaryrefslogtreecommitdiff
path: root/packages/utils.py
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/utils.py
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/utils.py')
-rw-r--r--packages/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/utils.py b/packages/utils.py
index 4f3b8665..b8d1504d 100644
--- a/packages/utils.py
+++ b/packages/utils.py
@@ -14,7 +14,7 @@ from main.utils import (database_vendor,
groupby_preserve_order, PackageStandin)
from .models import (PackageGroup, PackageRelation,
License, Depend, Conflict, Provision, Replacement,
- SignoffSpecification, Signoff, DEFAULT_SIGNOFF_SPEC)
+ SignoffSpecification, Signoff, fake_signoff_spec)
VERSION_RE = re.compile(r'^((\d+):)?(.+)-([^-]+)$')
@@ -297,7 +297,6 @@ class PackageSignoffGroup(object):
self.user = None
self.target_repo = None
self.signoffs = set()
- self.specification = DEFAULT_SIGNOFF_SPEC
self.default_spec = True
first = packages[0]
@@ -308,6 +307,7 @@ class PackageSignoffGroup(object):
self.last_update = first.last_update
self.packager = first.packager
self.maintainers = first.maintainers
+ self.specification = fake_signoff_spec(first.arch)
version = first.full_version
if all(version == pkg.full_version for pkg in packages):