diff options
author | merakor <cem@ckyln.com> | 2021-07-03 22:03:40 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-07-03 22:03:40 +0000 |
commit | 9575efbfdd4fb0218c90d5f5ac52aa64bd6a9680 (patch) | |
tree | 56677bd21abdc0a11a2834c91a568cebd4b35cbb /src | |
parent | 2dbf2b4255beb0ce8a12be7618ca87dce43fe064 (diff) | |
download | cpt-9575efbfdd4fb0218c90d5f5ac52aa64bd6a9680.tar.gz |
pkg_extract: strip components using pax
FossilOrigin-Name: 9b9bd34337c1e49c86dbf2eff3ce38443d6a8b26b1c4d9f4fb13c87e248a6296
Diffstat (limited to 'src')
-rw-r--r-- | src/cpt-lib.in | 3 |
1 files changed, 2 insertions, 1 deletions
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)" } } } |