From 8f5a7b5b32ea4a0ea0baa1714aff91d203aa7222 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 27 Jun 2023 23:37:01 -0700 Subject: [PATCH] distmaker - Add option DM_SKIP_EXT --- distmaker/distmaker.conf.dist | 3 +++ distmaker/dists/common.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/distmaker/distmaker.conf.dist b/distmaker/distmaker.conf.dist index 45918b8cff..7cd49f90e2 100644 --- a/distmaker/distmaker.conf.dist +++ b/distmaker/distmaker.conf.dist @@ -31,3 +31,6 @@ DM_REF_PACKAGES=${DM_REF_CORE} ## Don't build Joomla's alt. Useful if you're frequently rebuilding Joomla for dev-test process. # DM_SKIP_ALT=1 + +## Don't download external extensions +# DM_SKIP_EXT=1 diff --git a/distmaker/dists/common.sh b/distmaker/dists/common.sh index ea500d022e..a1cc56bea3 100644 --- a/distmaker/dists/common.sh +++ b/distmaker/dists/common.sh @@ -276,6 +276,9 @@ function dm_git_checkout() { ## Download a Civi extension ## usage: dm_install_cvext function dm_install_cvext() { + if [ -n "$DM_SKIP_EXT" ]; then + return + fi # cv dl -b '@https://civicrm.org/extdir/ver=4.7.25|cms=Drupal/com.iatspayments.civicrm.xml' --destination=$PWD/iatspayments cv dl -b "@https://civicrm.org/extdir/ver=$DM_VERSION|cms=Drupal/$1.xml" --to="$2" } -- 2.25.1