]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script: allow relative & ~ paths in build-with-container dnf cache arg 61913/head
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 6 Feb 2025 16:51:54 +0000 (11:51 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 19 Feb 2025 19:31:09 +0000 (14:31 -0500)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit cf0ed0a2859204fab3cbd871d2e56c1a86fa6a53)

src/script/build-with-container.py

index 359a83bfb28e4325ab6256ed170874d52c546ed9..65cf3a920ec467c07781b2ba9e12ad8c0f4206c7 100755 (executable)
@@ -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