summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-25 09:49:06 +0200
committerMichał Górny <mgorny@gentoo.org>2022-09-27 22:28:06 +0200
commita8d104aa0eda11f36aaa20256353bf6ce6543065 (patch)
treea73d5ea1a0803c6b62feb3adf04df9417e1da948 /eclass/tests
parentunpacker.eclass: Support lbzip2 as parallel bz2 decompressor (diff)
downloadgentoo-a8d104aa0eda11f36aaa20256353bf6ce6543065.tar.gz
gentoo-a8d104aa0eda11f36aaa20256353bf6ce6543065.tar.bz2
gentoo-a8d104aa0eda11f36aaa20256353bf6ce6543065.zip
unpacker.eclass: Fix handling GNU ar archives in handwoven impl
Fix the hand-weaved implementation of ar unpacking that is used on Prefix to handle slash-terminated filenames of GNU ar format correctly. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/tests')
-rwxr-xr-xeclass/tests/unpacker.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/tests/unpacker.sh b/eclass/tests/unpacker.sh
index 40bde1bf30de..b15953966f65 100755
--- a/eclass/tests/unpacker.sh
+++ b/eclass/tests/unpacker.sh
@@ -134,6 +134,10 @@ test_deb() {
test_unpack "test-${tool}_1.2.3_noarch.deb" test.in "ar tar ${tool}" \
"create_deb '${suffix}' '${tool_cmd}' \${archive} \${TESTFILE}"
+ # also test with the handwoven implementation used on Prefix
+ EPREFIX=/foo \
+ test_unpack "test_pfx-${tool}_1.2.3_noarch.deb" test.in "ar tar ${tool}" \
+ "create_deb '${suffix}' '${tool_cmd}' \${archive} \${TESTFILE}"
}
create_gpkg() {