[PATCH] unpacker.eclass: Quote filename in message to match Portage

Michał Górny <[email protected]> Sat, 27 Jun 2026 16:49:54 +0200
Newsgroups gmane.linux.gentoo.devel
Message-ID <[email protected]>
Quote the filename being unpacked to match the modern Portage output,
i.e.:

>>> Unpacking 'linux-7.1.tar.xz' to /var/tmp/portage/sys-kernel/gentoo-kernel-bin-7.1.2/work

Signed-off-by: Michał Górny <[email protected]>
---
 eclass/unpacker.eclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index a31d2580b4e8b..2b8b70fe9484d 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -63,7 +63,8 @@ find_unpackable_file() {
 }
 
 unpack_banner() {
-	echo ">>> Unpacking ${1##*/} to ${PWD}"
+	local fn=${1##*/}
+	echo ">>> Unpacking ${fn@Q} to ${PWD}"
 }
 
 # @FUNCTION: unpack_pdv