Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2788)

Unified Diff: build/install-build-deps.sh

Issue 17415: Download into unique subdir of /tmp to avoid permission problems (e.g. root n... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/install-build-deps.sh
===================================================================
--- build/install-build-deps.sh (revision 7726)
+++ build/install-build-deps.sh (working copy)
@@ -4,6 +4,16 @@
# and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit
set -ex
+# Root can't access files on all filesystems, but /tmp should always be ok
+# (unless it's full).
+DIR=`mktemp -d`
+cd $DIR
+touch .created
+
+cleanup() {
+ test -f $DIR/.created && rm -rf $DIR
+}
+
# TODO(dkegel): add sha1sum verification
download() {
dir=$1
@@ -95,6 +105,8 @@
install_hardy_64
else
echo "Unsupported system"
+ cleanup
exit 1
fi
+cleanup
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698