From: John Mulligan Date: Thu, 6 Feb 2025 16:51:54 +0000 (-0500) Subject: script: allow relative & ~ paths in build-with-container dnf cache arg X-Git-Tag: v19.2.3~350^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c82b04b67faa8b11a04389c652fbe31dcf82b5ca;p=ceph.git script: allow relative & ~ paths in build-with-container dnf cache arg Signed-off-by: John Mulligan (cherry picked from commit cf0ed0a2859204fab3cbd871d2e56c1a86fa6a53) --- diff --git a/src/script/build-with-container.py b/src/script/build-with-container.py index 359a83bfb28..65cf3a920ec 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