From 9575efbfdd4fb0218c90d5f5ac52aa64bd6a9680 Mon Sep 17 00:00:00 2001 From: merakor Date: Sat, 3 Jul 2021 22:03:40 +0000 Subject: pkg_extract: strip components using pax FossilOrigin-Name: 9b9bd34337c1e49c86dbf2eff3ce38443d6a8b26b1c4d9f4fb13c87e248a6296 --- src/cpt-lib.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 6bb12bd..2cdc76e 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -713,7 +713,7 @@ pkg_extract() { # which allows for manual extraction. *://*.tar|*://*.tar.??|*://*.tar.???|*://*.tar.????|*://*.tgz|\ *://*.txz|*://*.cpio|*://*.cpio.??|*://*.cpio.???|*://*.cpio.????) - decompress "$src_dir/$1/${src##*/}" | pax -r ;; + decompress "$src_dir/$1/${src##*/}" | pax -rs '|[^/]*/|.|' ;; *://*.zip) unzip "$src_dir/$1/${src##*/}" || @@ -1624,6 +1624,7 @@ pkg_repository_update() { "Message of the Day [$PWD]" \ "$(_multiply_char '=' 60)" cat "$repo_root/motd" + printf '\n%s\n' "$(_multiply_char '=' 60)" } } } -- cgit v1.2.3