Need to validate data.pkg too

This commit is contained in:
László Károlyi 2024-10-28 11:35:50 +01:00
parent 49e2bf1f07
commit 01f7ea4533
Signed by: karolyi
GPG key ID: 2DCAF25E55735BFE

View file

@ -386,6 +386,7 @@ def half_liverun(pkgmirror_url: str, abi: str, verbose: bool, packages: str):
url_pkgsite_txz = '/'.join((url_prefix, 'packagesite.txz'))
# .txz will be phased out over time
url_pkgsite_pkg = '/'.join((url_prefix, 'packagesite.pkg'))
url_data_pkg = '/'.join((url_prefix, 'data.pkg'))
if verbose:
logger.debug(msg=f'Fetching {url_meta_conf}')
meta_conf = \
@ -404,6 +405,11 @@ def half_liverun(pkgmirror_url: str, abi: str, verbose: bool, packages: str):
if verbose:
logger.debug(
msg=f'{url_pkgsite_pkg} size is {len(pkgsite_pkg.content)}')
data_pkg = \
_get_fetched_url(url=url_data_pkg, do_hash=False, cachebust=True)
if verbose:
logger.debug(
msg=f'{url_data_pkg} size is {len(data_pkg.content)}')
io = BytesIO(initial_bytes=pkgsite_txz.content)
resolver = DependencyResolver(
packages_txz_fd=io, verbose=verbose, passed_packages=packages)