forked from sig_core/toolkit
Add reposcan option for variants that should not look at compose
This commit is contained in:
parent
5e6427ea4b
commit
30a84cfed5
@ -53,12 +53,14 @@
|
|||||||
images:
|
images:
|
||||||
dvd:
|
dvd:
|
||||||
disc: True
|
disc: True
|
||||||
|
reposcan: True
|
||||||
variant: 'AppStream'
|
variant: 'AppStream'
|
||||||
repos:
|
repos:
|
||||||
- 'BaseOS'
|
- 'BaseOS'
|
||||||
- 'AppStream'
|
- 'AppStream'
|
||||||
minimal:
|
minimal:
|
||||||
disc: True
|
disc: True
|
||||||
|
reposcan: False
|
||||||
isoskip: True
|
isoskip: True
|
||||||
repos:
|
repos:
|
||||||
- 'minimal'
|
- 'minimal'
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
images:
|
images:
|
||||||
dvd:
|
dvd:
|
||||||
disc: True
|
disc: True
|
||||||
|
reposcan: True
|
||||||
variant: 'AppStream'
|
variant: 'AppStream'
|
||||||
repos:
|
repos:
|
||||||
- 'BaseOS'
|
- 'BaseOS'
|
||||||
@ -60,6 +61,7 @@
|
|||||||
minimal:
|
minimal:
|
||||||
disc: True
|
disc: True
|
||||||
isoskip: True
|
isoskip: True
|
||||||
|
reposcan: False
|
||||||
repos:
|
repos:
|
||||||
- 'minimal'
|
- 'minimal'
|
||||||
- 'BaseOS'
|
- 'BaseOS'
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
images:
|
images:
|
||||||
dvd:
|
dvd:
|
||||||
disc: True
|
disc: True
|
||||||
|
reposcan: True
|
||||||
variant: 'AppStream'
|
variant: 'AppStream'
|
||||||
repos:
|
repos:
|
||||||
- 'BaseOS'
|
- 'BaseOS'
|
||||||
@ -60,6 +61,7 @@
|
|||||||
minimal:
|
minimal:
|
||||||
disc: True
|
disc: True
|
||||||
isoskip: True
|
isoskip: True
|
||||||
|
reposcan: False
|
||||||
repos:
|
repos:
|
||||||
- 'minimal'
|
- 'minimal'
|
||||||
- 'BaseOS'
|
- 'BaseOS'
|
||||||
|
@ -743,9 +743,14 @@ class IsoBuild:
|
|||||||
|
|
||||||
for y in images_to_build:
|
for y in images_to_build:
|
||||||
if 'isoskip' in self.iso_map['images'][y] and self.iso_map['images'][y]['isoskip']:
|
if 'isoskip' in self.iso_map['images'][y] and self.iso_map['images'][y]['isoskip']:
|
||||||
self.log.info(Color.WARN + 'Skipping ' + y + ' image')
|
self.log.info(Color.WARN + f'Skipping {y} image')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
reposcan = True
|
||||||
|
if 'reposcan' in self.iso_map['images'][y] and not self.iso_map['images'][y]['reposcan']:
|
||||||
|
self.log.info(Color.WARN + f"Skipping compose repository scans for {y}")
|
||||||
|
reposcan = False
|
||||||
|
|
||||||
# Kind of hacky, but if we decide to have more than boot/dvd iso's,
|
# Kind of hacky, but if we decide to have more than boot/dvd iso's,
|
||||||
# we need to make sure volname matches the initial lorax image,
|
# we need to make sure volname matches the initial lorax image,
|
||||||
# which the volid contains "dvd". AKA, file name doesn't always
|
# which the volid contains "dvd". AKA, file name doesn't always
|
||||||
@ -770,6 +775,7 @@ class IsoBuild:
|
|||||||
a,
|
a,
|
||||||
y,
|
y,
|
||||||
self.iso_map['images'][y]['repos'],
|
self.iso_map['images'][y]['repos'],
|
||||||
|
reposcan=reposcan
|
||||||
)
|
)
|
||||||
self._extra_iso_local_config(a, y, grafts, work_root, volname)
|
self._extra_iso_local_config(a, y, grafts, work_root, volname)
|
||||||
|
|
||||||
@ -1091,6 +1097,7 @@ class IsoBuild:
|
|||||||
arch,
|
arch,
|
||||||
iso,
|
iso,
|
||||||
variants,
|
variants,
|
||||||
|
reposcan: bool = True,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Get a list of packages for an extras ISO. This should NOT be called
|
Get a list of packages for an extras ISO. This should NOT be called
|
||||||
@ -1120,26 +1127,28 @@ class IsoBuild:
|
|||||||
# actually get the boot data
|
# actually get the boot data
|
||||||
files = self._get_grafts([lorax_for_var, extra_files_for_var])
|
files = self._get_grafts([lorax_for_var, extra_files_for_var])
|
||||||
|
|
||||||
# This is to get all the packages for each repo
|
# Some variants cannot go through a proper scan.
|
||||||
for repo in variants:
|
if reposcan:
|
||||||
pkg_for_var = os.path.join(
|
# This is to get all the packages for each repo
|
||||||
self.compose_latest_sync,
|
for repo in variants:
|
||||||
repo,
|
pkg_for_var = os.path.join(
|
||||||
arch,
|
self.compose_latest_sync,
|
||||||
self.structure['packages']
|
repo,
|
||||||
)
|
arch,
|
||||||
rd_for_var = os.path.join(
|
self.structure['packages']
|
||||||
self.compose_latest_sync,
|
)
|
||||||
repo,
|
rd_for_var = os.path.join(
|
||||||
arch,
|
self.compose_latest_sync,
|
||||||
self.structure['repodata']
|
repo,
|
||||||
)
|
arch,
|
||||||
|
self.structure['repodata']
|
||||||
|
)
|
||||||
|
|
||||||
for k, v in self._get_grafts([pkg_for_var]).items():
|
for k, v in self._get_grafts([pkg_for_var]).items():
|
||||||
files[os.path.join(repo, "Packages", k)] = v
|
files[os.path.join(repo, "Packages", k)] = v
|
||||||
|
|
||||||
for k, v in self._get_grafts([rd_for_var]).items():
|
for k, v in self._get_grafts([rd_for_var]).items():
|
||||||
files[os.path.join(repo, "repodata", k)] = v
|
files[os.path.join(repo, "repodata", k)] = v
|
||||||
|
|
||||||
grafts = f'{lorax_base_dir}/{iso}-{arch}-grafts'
|
grafts = f'{lorax_base_dir}/{iso}-{arch}-grafts'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user