From a81e44e1ccd4c19de283dcd1e90da04bf8ae0208 Mon Sep 17 00:00:00 2001 From: "derat@chromium.org" Date: Mon, 17 May 2010 21:16:53 +0000 Subject: install-build-deps.sh: Add missing sudos. Some apt commands were being run as the normal user, resulting in the script dying. BUG=none TEST=gave the diff to someone; it fixed the failures for them Review URL: http://codereview.chromium.org/2137002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47458 0039d316-1c4b-4281-b951-d872f2087c98 --- build/install-build-deps.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build/install-build-deps.sh') diff --git a/build/install-build-deps.sh b/build/install-build-deps.sh index 057b76b..4237101 100755 --- a/build/install-build-deps.sh +++ b/build/install-build-deps.sh @@ -328,7 +328,7 @@ if [ "$(uname -m)" = "x86_64" ]; then echo "First, installing the limited existing 32-bit support..." cmp_list="ia32-libs lib32asound2-dev lib32readline5-dev lib32stdc++6 lib32z1 lib32z1-dev libc6-dev-i386 libc6-i386 g++-multilib" - apt-get install $cmp_list + sudo apt-get install $cmp_list tmp=/tmp/install-32bit.$$ trap 'rm -rf "${tmp}"' EXIT INT TERM QUIT @@ -346,11 +346,11 @@ EOF # Download 32bit packages echo "Computing list of available 32bit packages..." - apt-get -c="${tmp}/apt/apt.conf" update + sudo apt-get -c="${tmp}/apt/apt.conf" update echo "Downloading available 32bit packages..." - apt-get -c="${tmp}/apt/apt.conf" \ - --yes --download-only --force-yes --reinstall install \ + sudo apt-get -c="${tmp}/apt/apt.conf" \ + --yes --download-only --force-yes --reinstall install \ ${lib_list} ${dbg_list} # Open packages, remove everything that is not a library, move the -- cgit v1.1