diff options
author | merakor <cem@ckyln.com> | 2020-09-04 08:00:49 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-09-04 08:00:49 +0000 |
commit | adffb32537d8c1c6057101a34cb33fffc8316d08 (patch) | |
tree | 44fb96ef71028625f5b4c37a346fcd48d25f28da /src/cpt-lib | |
parent | 88c6043753abf9686a2f6a18a216bc75b9e15586 (diff) | |
download | cpt-adffb32537d8c1c6057101a34cb33fffc8316d08.tar.gz |
src/: prefer the cpt-lib on the current directory.
FossilOrigin-Name: ea0a950e2247b056b0594baddb184f99aa8e39f492fa50c968e904b9dd2e2aa7
Diffstat (limited to 'src/cpt-lib')
-rw-r--r-- | src/cpt-lib | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cpt-lib b/src/cpt-lib index 8ef82c5..0460fcb 100644 --- a/src/cpt-lib +++ b/src/cpt-lib @@ -582,7 +582,7 @@ pkg_extract() { # Comment or blank line. \#*|'') continue ;; - # Only 'tar' an 'zip' archives are currently supported for + # Only 'tar', 'cpio', and 'zip' archives are currently supported for # extraction. Other filetypes are simply copied to '$mak_dir' # which allows for manual extraction. *://*.tar|*://*.tar.??|*://*.tar.???|*://*.tar.????|*://*.tgz|*://*.txz) @@ -639,6 +639,11 @@ pkg_extract() { rm -f .ktar ;; + *://*.cpio|*://*.cpio.??|*://*.cpio.???|*://*.cpio.????) + decompress "$src_dir/$1/${src##*/}" | cpio -i + + ;; + *://*.zip) unzip "$src_dir/$1/${src##*/}" || die "$1" "Couldn't extract ${src##*/}" |