bugfixes! what kind of drunk seafood wrote these?

This commit is contained in:
InsanePrawn 2021-10-05 16:36:44 +02:00
parent c1ece2d616
commit 643cc21d3c
2 changed files with 2 additions and 2 deletions

View file

@ -174,7 +174,7 @@ def mount_crossdirect(native_chroot: str, target_chroot: str, target_arch: str,
os.makedirs(native_mount, exist_ok=True) os.makedirs(native_mount, exist_ok=True)
ld_so = glob(f"{os.path.join('native_chroot', 'usr', 'lib', 'ld-linux-')}*")[0] ld_so = glob(f"{os.path.join(native_chroot, 'usr', 'lib', 'ld-linux-')}*")[0]
copy(ld_so, os.path.join(target_chroot, 'usr', 'lib')) copy(ld_so, os.path.join(target_chroot, 'usr', 'lib'))
logging.debug(f'Mounting {native_chroot} to {native_mount}') logging.debug(f'Mounting {native_chroot} to {native_mount}')

View file

@ -319,7 +319,7 @@ def add_package_to_repo(package: Package, arch: str):
for file in os.listdir(pkgbuild_dir): for file in os.listdir(pkgbuild_dir):
# Forced extension by makepkg.conf # Forced extension by makepkg.conf
if file.endswith('.pkg.tar.xz') or file.endswith('.pkg.tar.zst'): if file.endswith('.pkg.tar.xz') or file.endswith('.pkg.tar.zst'):
return add_file_to_repo(os.path.join(pkgbuild_dir, file), package.repo, arch) add_file_to_repo(os.path.join(pkgbuild_dir, file), package.repo, arch)
def check_package_version_built(package: Package, arch) -> bool: def check_package_version_built(package: Package, arch) -> bool: