Merge "Fix inverted conditionals in setup_develop"
This commit is contained in:
commit
9ea10307b7
@ -1248,7 +1248,7 @@ function setup_develop {
|
|||||||
# ``errexit`` requires us to trap the exit code when the repo is changed
|
# ``errexit`` requires us to trap the exit code when the repo is changed
|
||||||
local update_requirements=$(cd $project_dir && git diff --exit-code >/dev/null || echo "changed")
|
local update_requirements=$(cd $project_dir && git diff --exit-code >/dev/null || echo "changed")
|
||||||
|
|
||||||
if [[ $update_requirements = "changed" ]]; then
|
if [[ $update_requirements != "changed" ]]; then
|
||||||
(cd $REQUIREMENTS_DIR; \
|
(cd $REQUIREMENTS_DIR; \
|
||||||
$SUDO_CMD python update.py $project_dir)
|
$SUDO_CMD python update.py $project_dir)
|
||||||
fi
|
fi
|
||||||
@ -1264,7 +1264,7 @@ function setup_develop {
|
|||||||
# a variable that tells us whether or not we should UNDO the requirements
|
# a variable that tells us whether or not we should UNDO the requirements
|
||||||
# changes (this will be set to False in the OpenStack ci gate)
|
# changes (this will be set to False in the OpenStack ci gate)
|
||||||
if [ $UNDO_REQUIREMENTS = "True" ]; then
|
if [ $UNDO_REQUIREMENTS = "True" ]; then
|
||||||
if [[ $update_requirements = "changed" ]]; then
|
if [[ $update_requirements != "changed" ]]; then
|
||||||
(cd $project_dir && git reset --hard)
|
(cd $project_dir && git reset --hard)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user