pkgset: Remove package skip optimization for bootable products

If buildinstall is supposed to run, we can't pick only some packages
from the tag. The temporary repo is used as a source for lorax. There
could very well be packages not meant to be shipped in the compose that
are still essential for building the bootable images.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-11-27 08:18:12 +01:00
parent b068514471
commit cf114a7fab
1 changed files with 6 additions and 5 deletions

View File

@ -200,12 +200,13 @@ def populate_global_pkgset(compose, koji_wrapper, path_prefix, event_id):
variant_tags = {}
# In case we use "nodeps" gather_method, we might now the final list of
# packages which will end up in the compose even now, so instead of
# reading all the packages from Koji tag, we can just cherry-pick the ones
# which are really needed to do the compose and safe lot of time and
# resources here.
# packages which will end up in the compose even now, so instead of reading
# all the packages from Koji tag, we can just cherry-pick the ones which
# are really needed to do the compose and safe lot of time and resources
# here. This only works if we are not creating bootable images. Those could
# include packages that are not in the compose.
packages_to_gather = []
if compose.conf["gather_method"] == "nodeps":
if compose.conf["gather_method"] == "nodeps" and not compose.conf.get('bootable'):
packages_to_gather, groups = get_packages_to_gather(
compose, include_arch=False, include_prepopulated=True)
if groups: