Prevent to reuse if unsigned packages are allowed
JIRA: RHELCMP-8415
Signed-off-by: Haibo Lin <hlin@redhat.com>
(cherry picked from commit b30f7e0d83
)
This commit is contained in:
parent
e891fe7b09
commit
5fb4f86312
@ -692,6 +692,15 @@ class KojiPackageSet(PackageSetBase):
|
|||||||
:param include_packages: an iterable of tuples (package name, arch) that should
|
:param include_packages: an iterable of tuples (package name, arch) that should
|
||||||
be included.
|
be included.
|
||||||
"""
|
"""
|
||||||
|
if len(self.sigkey_ordering) > 1 and (
|
||||||
|
None in self.sigkey_ordering or "" in self.sigkey_ordering
|
||||||
|
):
|
||||||
|
self.log_warning(
|
||||||
|
"Stop writing reuse file as unsigned packages are allowed "
|
||||||
|
"in the compose."
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
reuse_file = compose.paths.work.pkgset_reuse_file(self.name)
|
reuse_file = compose.paths.work.pkgset_reuse_file(self.name)
|
||||||
self.log_info("Writing pkgset reuse file: %s" % reuse_file)
|
self.log_info("Writing pkgset reuse file: %s" % reuse_file)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user