mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
Fix check if split packages have been built
This commit is contained in:
parent
c70db11d64
commit
9aa17d1fc7
1 changed files with 4 additions and 2 deletions
|
@ -341,15 +341,17 @@ def check_package_version_built(package: Package, arch) -> bool:
|
|||
if result.returncode != 0:
|
||||
raise Exception(f'Failed to get package list for {package.path}:' + '\n' + result.stdout.decode() + '\n' + result.stderr.decode())
|
||||
|
||||
missing = False
|
||||
for line in result.stdout.decode('utf-8').split('\n'):
|
||||
if line != "":
|
||||
file = os.path.join(config.get_package_dir(arch), package.repo, os.path.basename(line))
|
||||
logging.debug(f'Checking if {file} is built')
|
||||
if os.path.exists(file):
|
||||
add_file_to_repo(file, repo_name=package.repo, arch=arch)
|
||||
return True
|
||||
else:
|
||||
missing = True
|
||||
|
||||
return False
|
||||
return not missing
|
||||
|
||||
|
||||
def setup_build_chroot(arch: str, extra_packages=[]) -> str:
|
||||
|
|
Loading…
Add table
Reference in a new issue