Skip to content

Commit 7e585f6

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Source fixup_stuff..."
2 parents dc85b3a + 04a3511 commit 7e585f6

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ if [[ "$OFFLINE" != "True" ]]; then
678678
fi
679679

680680
# Do the ugly hacks for broken packages and distros
681-
$TOP_DIR/tools/fixup_stuff.sh
681+
source $TOP_DIR/tools/fixup_stuff.sh
682682

683683

684684
# Extras Pre-install

tools/fixup_stuff.sh

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,24 @@
2020
# - pre-install hgtools to work around a bug in RHEL6 distribute
2121
# - install nose 1.1 from EPEL
2222

23-
set -o errexit
24-
set -o xtrace
23+
# If TOP_DIR is set we're being sourced rather than running stand-alone
24+
# or in a sub-shell
25+
if [[ -z "$TOP_DIR" ]]; then
26+
set -o errexit
27+
set -o xtrace
2528

26-
# Keep track of the current directory
27-
TOOLS_DIR=$(cd $(dirname "$0") && pwd)
28-
TOP_DIR=$(cd $TOOLS_DIR/..; pwd)
29+
# Keep track of the current directory
30+
TOOLS_DIR=$(cd $(dirname "$0") && pwd)
31+
TOP_DIR=$(cd $TOOLS_DIR/..; pwd)
2932

30-
# Change dir to top of devstack
31-
cd $TOP_DIR
33+
# Change dir to top of devstack
34+
cd $TOP_DIR
3235

33-
# Import common functions
34-
source $TOP_DIR/functions
36+
# Import common functions
37+
source $TOP_DIR/functions
3538

36-
FILES=$TOP_DIR/files
39+
FILES=$TOP_DIR/files
40+
fi
3741

3842
# Keystone Port Reservation
3943
# -------------------------

0 commit comments

Comments
 (0)