fix formatting

This commit is contained in:
InsanePrawn 2022-01-27 14:27:39 +01:00
parent 209708a33e
commit 5bdc437f79
2 changed files with 3 additions and 1 deletions

View file

@ -277,8 +277,10 @@ class Chroot:
strict_cache_consistency: bool = False,
):
"""returns the absolute path `relative_target` was mounted at"""
def log_or_exc(msg):
log_or_exception(strict_cache_consistency, msg, log_level=logging.ERROR)
relative_destination = relative_destination.lstrip('/')
absolute_destination = self.get_path(relative_destination)
pseudo_absolute = make_abs_path(relative_destination)

View file

@ -420,7 +420,7 @@ def setup_build_chroot(
return chroot
def setup_sources(package: Package, chroot: Chroot, makepkg_conf_path = '/etc/makepkg.conf', pkgbuilds_dir: str = None):
def setup_sources(package: Package, chroot: Chroot, makepkg_conf_path='/etc/makepkg.conf', pkgbuilds_dir: str = None):
pkgbuilds_dir = pkgbuilds_dir if pkgbuilds_dir else CHROOT_PATHS['pkgbuilds']
makepkg_setup_args = [
'--config',