From 46f8cb7f208d00f89863cf57f2400309cf8f6bd4 Mon Sep 17 00:00:00 2001 From: Marc Koderer Date: Fri, 13 May 2016 09:08:16 +0200 Subject: [PATCH] Add option to download all libs from git For client debugging that invokes multiple libs it can be useful to have all libs directly in git and not listing all of them in LIBS_FROM_GIT. TrivialFix Change-Id: Ie631cc4045231ebbe8177d2d113e47e4bf83f61c --- doc/source/configuration.rst | 3 +++ inc/python | 2 +- stackrc | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/source/configuration.rst b/doc/source/configuration.rst index 1f5797c22d..384ceee41a 100644 --- a/doc/source/configuration.rst +++ b/doc/source/configuration.rst @@ -427,6 +427,9 @@ can be specified as a comma separated list. LIBS_FROM_GIT=python-keystoneclient,oslo.config +Setting the variable to ``ALL`` will activate the download for all +libraries. + Virtual Environments -------------------- diff --git a/inc/python b/inc/python index 495150d4b8..e013dfab36 100644 --- a/inc/python +++ b/inc/python @@ -192,7 +192,7 @@ function get_from_global_requirements { function use_library_from_git { local name=$1 local enabled=1 - [[ ,${LIBS_FROM_GIT}, =~ ,${name}, ]] && enabled=0 + [[ ${LIBS_FROM_GIT} = 'ALL' ]] || [[ ,${LIBS_FROM_GIT}, =~ ,${name}, ]] && enabled=0 return $enabled } diff --git a/stackrc b/stackrc index 4ba57c9cb6..8e1900dd94 100644 --- a/stackrc +++ b/stackrc @@ -208,6 +208,9 @@ REQUIREMENTS_DIR=$DEST/requirements # ex: LIBS_FROM_GIT=python-keystoneclient,oslo.config # # Will install those 2 libraries from git, the rest from pypi. +# +# Setting the variable to 'ALL' will activate the download for all +# libraries. ##############