From 2bbdafbb26e57b0b991b7e72e84a0855fe16d70a Mon Sep 17 00:00:00 2001 From: mazze Date: Sun, 8 Mar 2009 13:12:25 +0000 Subject: [PATCH] Added support for zip files. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@30796 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- scripts/fetch.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/fetch.sh b/scripts/fetch.sh index 98ac8f095..f5bc60029 100755 --- a/scripts/fetch.sh +++ b/scripts/fetch.sh @@ -180,6 +180,9 @@ unpack() *.tar.gz | *.tgz) if ! tar xfz "$archivepath/$archive"; then ret=false; fi ;; + *.zip) + if ! unzip "$archivepath/$archive"; then ret=false; fi + ;; *) echo "Unknown archive format for \`$archive'." ret=false @@ -290,7 +293,7 @@ for patch in $patches; do patch=`echo $patch | cut -d: -f1` if test "x$patch" != "x"; then if ! fetch_cached "$patches_origins" "$patch" "" "$destination"; then - fetch_cached "$patches_origins" "$patch" "tar.bz2 tar.gz" "$destination" patch2 + fetch_cached "$patches_origins" "$patch" "tar.bz2 tar.gz zip" "$destination" patch2 test -z "$patch2" && error "fetch: Error while fetching the patch \`$patch'." if ! unpack_cached "$destination" "$patch2" "$destination"; then error "fetch: Error while unpacking \`$patch2'." -- 2.11.4.GIT