# HG changeset patch # User Franz Glasner # Date 1737795379 -3600 # Node ID dee891ed2307f88ceffe19821f78ade60be565a6 # Parent 8e38c07c4b85fccab4b8efb71ecab9ad5aa5cdc0 FIX: Output of symlinks was not converted property but was written in bytes repr diff -r 8e38c07c4b85 -r dee891ed2307 cutils/treesum.py --- a/cutils/treesum.py Sat Jan 25 09:52:22 2025 +0100 +++ b/cutils/treesum.py Sat Jan 25 09:56:19 2025 +0100 @@ -666,12 +666,14 @@ opath = walk.WalkDirEntry.alt_fs(opath) if self._size_only: self._outfp.write(format_bsd_line( - "SIZE", None, "%s/./@/" % (opath,), False, 0)) + "SIZE", None, + util.interpolate_bytes(b"%s/./@/", opath), + False, 0)) else: self._outfp.write(format_bsd_line( self._algorithm[1], linkdgst.digest(), - "%s/./@/" % (opath,), + util.interpolate_bytes(b"%s/./@/", opath), self._use_base64)) self._outfp.flush() else: @@ -777,12 +779,14 @@ opath = walk.WalkDirEntry.alt_fs(opath) if self._size_only: self._outfp.write(format_bsd_line( - "SIZE", None, "%s/./@" % (opath,), False, 0)) + "SIZE", None, + util.interpolate_bytes(b"%s/./@", opath), + False, 0)) else: self._outfp.write(format_bsd_line( self._algorithm[1], linkdgst.digest(), - "%s/./@" % (opath,), + util.interpolate_bytes(b"%s/./@", opath), self._use_base64)) self._outfp.flush() else: