diff options
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##*/}" |