Skip to content

Commit cf0ed0a

Browse files
script: allow relative & ~ paths in build-with-container dnf cache arg
Signed-off-by: John Mulligan <[email protected]>
1 parent f716596 commit cf0ed0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/script/build-with-container.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ def from_image(self):
282282
@property
283283
def dnf_cache_dir(self):
284284
if self.cli.dnf_cache_path and self.distro_cache_name:
285-
return (
286-
pathlib.Path(self.cli.dnf_cache_path) / self.distro_cache_name
287-
)
285+
path = pathlib.Path(self.cli.dnf_cache_path)/ self.distro_cache_name
286+
path = path.expanduser()
287+
return path.resolve()
288288
return None
289289

290290
@property

0 commit comments

Comments
 (0)