summaryrefslogtreecommitdiffstats
path: root/build/install-build-deps.sh
diff options
context:
space:
mode:
authordkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 18:04:33 +0000
committerdkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 18:04:33 +0000
commit74a34ad656052aea44e62a80e7508e44bc079de6 (patch)
tree72ea6caa68ae7eed23bb1a27cf992c364672883a /build/install-build-deps.sh
parent4c3cd741778f0df792d6b8f4acbacd6675784aa8 (diff)
downloadchromium_src-74a34ad656052aea44e62a80e7508e44bc079de6.zip
chromium_src-74a34ad656052aea44e62a80e7508e44bc079de6.tar.gz
chromium_src-74a34ad656052aea44e62a80e7508e44bc079de6.tar.bz2
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
Diffstat (limited to 'build/install-build-deps.sh')
-rwxr-xr-xbuild/install-build-deps.sh4
1 files changed, 2 insertions, 2 deletions
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}