diff --git a/chroot.py b/chroot.py index 6487a84..ec0ef57 100644 --- a/chroot.py +++ b/chroot.py @@ -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) diff --git a/packages.py b/packages.py index 2615c60..d7e45cc 100644 --- a/packages.py +++ b/packages.py @@ -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',