This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch tristan/fix-list-content-symlinks
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 7daa0a9229a4827f2b8a63554f728ec8f773bcb5
Author: Tristan van Berkom <[email protected]>
AuthorDate: Fri Sep 27 11:56:52 2024 +0900

    _frontend/widget.py: Fix listing artifact content with symlinks
    
    The `bst artifact list-contents` command has been broken for a long time
    when inspecting artifacts which contain symlinks and given the `--long` 
option,
    resulting in a BUG message and stack trace.
---
 src/buildstream/_frontend/widget.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/buildstream/_frontend/widget.py 
b/src/buildstream/_frontend/widget.py
index b3004587c..28174032b 100644
--- a/src/buildstream/_frontend/widget.py
+++ b/src/buildstream/_frontend/widget.py
@@ -1040,7 +1040,7 @@ class LogLine(Widget):
                     + "{}".format(filename)
                 )
             elif filestat.file_type == FileType.SYMLINK:
-                target = directory.readlink(*filename.split(os.path.sep))
+                target = directory.readlink(filename)
                 return (
                     "lrwxrwxrwx  link   {}".format(size)
                     + "{} ".format(" " * (max_v_len - len(size)))

Reply via email to