Merge pull request #3134 from fibbers/fix-virtualenv-package-installation-issue

Prevent bootstrap-issue on Debian systems with virtualenv package
This commit is contained in:
Peter Eckersley 2016-06-13 15:00:19 -07:00 committed by GitHub
commit 268fb903b2
2 changed files with 2 additions and 2 deletions

View file

@ -172,7 +172,7 @@ BootstrapDebCommon() {
# distro version (#346)
virtualenv=
if apt-cache show virtualenv > /dev/null 2>&1; then
if apt-cache show virtualenv > /dev/null 2>&1 && ! apt-cache --quiet=0 show virtualenv 2>&1 | grep -q 'No packages found'; then
virtualenv="virtualenv"
fi

View file

@ -23,7 +23,7 @@ BootstrapDebCommon() {
# distro version (#346)
virtualenv=
if apt-cache show virtualenv > /dev/null 2>&1; then
if apt-cache show virtualenv > /dev/null 2>&1 && ! apt-cache --quiet=0 show virtualenv 2>&1 | grep -q 'No packages found'; then
virtualenv="virtualenv"
fi