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:
|
if result.returncode != 0:
|
||||||
raise Exception(f'Failed to get package list for {package.path}:' + '\n' + result.stdout.decode() + '\n' + result.stderr.decode())
|
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'):
|
for line in result.stdout.decode('utf-8').split('\n'):
|
||||||
if line != "":
|
if line != "":
|
||||||
file = os.path.join(config.get_package_dir(arch), package.repo, os.path.basename(line))
|
file = os.path.join(config.get_package_dir(arch), package.repo, os.path.basename(line))
|
||||||
logging.debug(f'Checking if {file} is built')
|
logging.debug(f'Checking if {file} is built')
|
||||||
if os.path.exists(file):
|
if os.path.exists(file):
|
||||||
add_file_to_repo(file, repo_name=package.repo, arch=arch)
|
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:
|
def setup_build_chroot(arch: str, extra_packages=[]) -> str:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue