scripts/extract: fix zip extraction

should fix *.zip packages
before pr:
PKG_NAME-PKG_VERSION.zip

creates
build.OE.../PKG_NAME/PKG_NAME-PKG_VERSION/files

instead of
build.OE.../PKG_NAME-PKG_VERSION/files
This commit is contained in:
CvH 2015-12-30 03:50:20 +01:00
parent a9a44713e7
commit 5f535e8c02

View File

@ -57,8 +57,7 @@ for i in $PKG_URL; do
7z x -o$3/$1 $f
;;
*.zip)
mkdir -p $3/$1
unzip -q $f -d $3/$1
unzip -q $f -d $3
;;
*.diff | *.patch)
cat $f | patch -d $3 -p1