diff --git a/bootstrap/_deb_common.sh b/bootstrap/_deb_common.sh index 6bb8479c8..a4dff6b1c 100755 --- a/bootstrap/_deb_common.sh +++ b/bootstrap/_deb_common.sh @@ -12,12 +12,11 @@ # - Raspbian: # - 7.8 (armhf) -apt-get update -apt-get install -y lsb-release # virtualenv binary can be found in different packages depending on # distro version (#346) newer () { + apt-get install -y lsb-release --no-install-recommends distro=$(lsb_release -si) # 6.0.10 => 60, 14.04 => 1404 # TODO: in sid version==unstable @@ -33,6 +32,8 @@ newer () { fi } +apt-get update + # you can force newer if lsb_release is not available (e.g. Docker # debian:jessie base image) if [ "$1" = "newer" ] || newer