From c82b04b67faa8b11a04389c652fbe31dcf82b5ca Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Thu, 6 Feb 2025 11:51:54 -0500 Subject: [PATCH] script: allow relative & ~ paths in build-with-container dnf cache arg Signed-off-by: John Mulligan (cherry picked from commit cf0ed0a2859204fab3cbd871d2e56c1a86fa6a53) --- src/script/build-with-container.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/script/build-with-container.py b/src/script/build-with-container.py index 359a83bfb28e4..65cf3a920ec46 100755 --- a/src/script/build-with-container.py +++ b/src/script/build-with-container.py @@ -282,9 +282,9 @@ class Context: @property def dnf_cache_dir(self): if self.cli.dnf_cache_path and self.distro_cache_name: - return ( - pathlib.Path(self.cli.dnf_cache_path) / self.distro_cache_name - ) + path = pathlib.Path(self.cli.dnf_cache_path)/ self.distro_cache_name + path = path.expanduser() + return path.resolve() return None @property -- 2.39.5