chroot: always overwrite makepkg.conf (fixes .zst vs .xz confusion)

This commit is contained in:
InsanePrawn 2021-10-10 18:26:28 +02:00
parent fb14a360bd
commit c5a12132d3

View file

@ -57,8 +57,7 @@ def create_chroot(chroot_name: str,
file.write(data) file.write(data)
# configure makepkg # configure makepkg
with open(f'{chroot_path}/etc/makepkg.conf', 'r') as file: data = generate_makepkg_conf(arch, cross=False)
data = file.read()
data = data.replace('xz -c', 'xz -T0 -c') data = data.replace('xz -c', 'xz -T0 -c')
data = data.replace(' check ', ' !check ') data = data.replace(' check ', ' !check ')
with open(f'{chroot_path}/etc/makepkg.conf', 'w') as file: with open(f'{chroot_path}/etc/makepkg.conf', 'w') as file: