Merge "create an UNDO_REQUIREMENTS variable"
This commit is contained in:
commit
4b3196f5a7
15
functions
15
functions
@ -1257,9 +1257,18 @@ function setup_develop() {
|
|||||||
# ensure that further actions can do things like setup.py sdist
|
# ensure that further actions can do things like setup.py sdist
|
||||||
safe_chown -R $STACK_USER $1/*.egg-info
|
safe_chown -R $STACK_USER $1/*.egg-info
|
||||||
|
|
||||||
# Undo requirements changes, if we made them
|
# We've just gone and possibly modified the user's source tree in an
|
||||||
if [ $update_requirements -eq 0 ]; then
|
# automated way, which is considered bad form if it's a development
|
||||||
(cd $project_dir && git reset --hard)
|
# tree because we've screwed up their next git checkin. So undo it.
|
||||||
|
#
|
||||||
|
# However... there are some circumstances, like running in the gate
|
||||||
|
# where we really really want the overridden version to stick. So provide
|
||||||
|
# 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)
|
||||||
|
if [ $UNDO_REQUIREMENTS = "True"]; then
|
||||||
|
if [ $update_requirements -eq 0 ]; then
|
||||||
|
(cd $project_dir && git reset --hard)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
3
stackrc
3
stackrc
@ -297,6 +297,9 @@ SCREEN_NAME=${SCREEN_NAME:-stack}
|
|||||||
# Do not install packages tagged with 'testonly' by default
|
# Do not install packages tagged with 'testonly' by default
|
||||||
INSTALL_TESTONLY_PACKAGES=${INSTALL_TESTONLY_PACKAGES:-False}
|
INSTALL_TESTONLY_PACKAGES=${INSTALL_TESTONLY_PACKAGES:-False}
|
||||||
|
|
||||||
|
# Undo requirements changes by global requirements
|
||||||
|
UNDO_REQUIREMENTS=${UNDO_REQUIREMENTS:-True}
|
||||||
|
|
||||||
# Local variables:
|
# Local variables:
|
||||||
# mode: shell-script
|
# mode: shell-script
|
||||||
# End:
|
# End:
|
||||||
|
Loading…
Reference in New Issue
Block a user