summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_extract.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2017-02-01 00:35:43 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2017-02-01 01:27:04 +0000
commit03a6372afeb96419da89a8100c95366f9ebe68cc (patch)
treebb994263b3afd55f4c7dd7c9a1b8381317baad81 /subr/pkg_extract.subr
parentf937121616866517e54f27e4e8d806c70f288ab8 (diff)
downloadmidipix_build-03a6372afeb96419da89a8100c95366f9ebe68cc.tar.bz2
midipix_build-03a6372afeb96419da89a8100c95366f9ebe68cc.tar.xz
subr/{pkg,pkg_fetch}.subr: merges fetch{,_git}() into pkg_fetch.subr and introduces ${PKG_URLS_GIT}.
subr/pkg_extract.subr: only extract if ${PKG_URL} is set. var/build.vars: updated to use ${PKG_URLS_GIT}. vars/{cparser,gcc,libfirm,musl,perl}.vars: updated to call pkg_fetch() instead of fetch{,_git}(). vars/gcc.vars: cleanup pkgp_gcc_setup_env() and pkg_gcc_stage1_all().
Diffstat (limited to 'subr/pkg_extract.subr')
-rw-r--r--subr/pkg_extract.subr3
1 files changed, 2 insertions, 1 deletions
diff --git a/subr/pkg_extract.subr b/subr/pkg_extract.subr
index 1bee8835..2b7d4fd4 100644
--- a/subr/pkg_extract.subr
+++ b/subr/pkg_extract.subr
@@ -4,7 +4,8 @@
#
pkg_extract() {
- if [ "${PKG_URL_TYPE:-wget}" = wget ]; then
+ if [ -n "${PKG_URL}" ]\
+ && [ "${PKG_URL_TYPE:-wget}" = wget ]; then
secure_rm ${PKG_SUBDIR};
if [ ${PKG_SUBDIR_CREATE:-0} -eq 1 ]; then
insecure_mkdir ${PKG_SUBDIR};