From 74a34ad656052aea44e62a80e7508e44bc079de6 Mon Sep 17 00:00:00 2001 From: "dkegel@google.com" Date: Wed, 22 Apr 2009 18:04:33 +0000 Subject: Handle the more verbose apt-get output format sometimes seen (on ubuntu 8.10?) This fixes the error E: Package php5-timezonedb has no installation candidate that several people, myself included, have been hitting. Review URL: http://codereview.chromium.org/92013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14207 0039d316-1c4b-4281-b951-d872f2087c98 --- build/install-build-deps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build/install-build-deps.sh') diff --git a/build/install-build-deps.sh b/build/install-build-deps.sh index 3031591..43fc2bc 100755 --- a/build/install-build-deps.sh +++ b/build/install-build-deps.sh @@ -101,11 +101,11 @@ sudo apt-get update # We then re-run "apt-get" with just the list of missing packages. echo "Finding missing packages..." new_list="$(yes n | - sudo apt-get install --reinstall \ + LANG=C sudo apt-get install --reinstall \ ${dev_list} ${lib_list} ${dbg_list} \ $([ "$(uname -m)" = x86_64 ] && echo ${cmp_list}) \ 2>/dev/null | - sed -e 's/^ //;t;d')" + sed -e '1,/The following NEW packages will be installed:/d;s/^ //;t;d')" echo "Installing missing packages..." sudo apt-get install ${new_list} -- cgit v1.1