Add pkgset_allow_reuse option
JIRA: RHELCMP-492 Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
153eb628e8
commit
0525768519
@ -505,6 +505,10 @@ Options
|
||||
with everything. Set this option to ``False`` to ignore ``noarch`` in
|
||||
``ExclusiveArch`` and always consider only binary architectures.
|
||||
|
||||
**pkgset_allow_reuse** = True
|
||||
(*bool*) -- When set to ``True``, *Pungi* will try to reuse pkgset data
|
||||
from old compose specified by ``--old-composes``.
|
||||
|
||||
|
||||
Example
|
||||
-------
|
||||
|
@ -642,6 +642,7 @@ def make_schema():
|
||||
},
|
||||
"gather_profiler": {"type": "boolean", "default": False},
|
||||
"gather_allow_reuse": {"type": "boolean", "default": False},
|
||||
"pkgset_allow_reuse": {"type": "boolean", "default": True},
|
||||
"pkgset_source": {"type": "string", "enum": ["koji", "repos"]},
|
||||
"createrepo_c": {"type": "boolean", "default": True},
|
||||
"createrepo_checksum": {
|
||||
|
@ -627,6 +627,10 @@ class KojiPackageSet(PackageSetBase):
|
||||
:param include_packages: an iterable of tuples (package name, arch) that should
|
||||
be included.
|
||||
"""
|
||||
if not compose.conf["pkgset_allow_reuse"]:
|
||||
self.log_info("Reusing pkgset data from old compose is disabled.")
|
||||
return False
|
||||
|
||||
self.log_info("Trying to reuse pkgset data of old compose")
|
||||
if not compose.paths.get_old_compose_topdir():
|
||||
self.log_debug("No old compose found. Nothing to reuse.")
|
||||
|
Loading…
Reference in New Issue
Block a user