Skip to content

Commit 31683a3

Browse files
committed
[build] Change check_dependencies.sh to not look for yum if apt-get present.
1 parent 0f5e16e commit 31683a3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tools/extras/check_dependencies.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ if which apt-get >&/dev/null && ! which zypper >/dev/null; then
122122
echo " sudo apt-get install libatlas3-base"
123123
printed=true
124124
fi
125-
fi
126-
127-
if which yum >&/dev/null; then
125+
elif which yum >&/dev/null; then
128126
if [ ! -z "$redhat_packages" ]; then
129127
echo "$0: we recommend that you run (our best guess):"
130128
echo " sudo yum install $redhat_packages"
@@ -136,9 +134,7 @@ if which yum >&/dev/null; then
136134
echo "sudo yum install atlas.x86_64"
137135
printed=true
138136
fi
139-
fi
140-
141-
if which zypper >&/dev/null; then
137+
elif which zypper >&/dev/null; then
142138
if [ ! -z "$opensuse_packages" ]; then
143139
echo "$0: we recommend that you run (our best guess):"
144140
echo " sudo zypper install $opensuse_packages"

0 commit comments

Comments
 (0)