Merge "Use $DISTRO_NAME instead of local lsb_release"

This commit is contained in:
Jenkins 2014-06-27 23:45:42 +00:00 committed by Gerrit Code Review
commit c307db119e
2 changed files with 3 additions and 8 deletions

View File

@ -4,11 +4,8 @@
set -eu
set -o pipefail
# If lsb_release is missing, just do nothing.
DISTRO=`lsb_release -si` || true
case $DISTRO in
'Ubuntu'|'Debian')
case $DISTRO_NAME in
'ubuntu'|'debian')
# Note: add-apt-repository would be nice for RPM platforms too - so when we
# need something like it, create a wrapper in dpkg/bin and fedora/bin.
apt-get -y update

View File

@ -2,8 +2,6 @@
set -eux
set -o pipefail
DISTRO=`lsb_release -si` || true
if [ "openSUSE project" = "$DISTRO" ]; then
if [ "opensuse" = "$DISTRO_NAME" ]; then
install-packages dhcp-client
fi