diff mbox

[Branch,~linaro-image-tools/linaro-image-tools/trunk] Rev 480: [r=mabac] Unset TMPDIR variable in linaro-hwpack-install. Fixes bug 834803

Message ID 20111222161213.31044.63410.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Georgy Redkozubov Dec. 22, 2011, 4:12 p.m. UTC
Merge authors:
  Georgy Redkozubov (georgy-redkozubov)
Related merge proposals:
  https://code.launchpad.net/~georgy-redkozubov/linaro-image-tools/834803/+merge/84266
  proposed by: Georgy Redkozubov (georgy-redkozubov)
  review: Approve - Mattias Backman (mabac)
  review: Approve - Paul Sokolovsky (pfalcon)
------------------------------------------------------------
revno: 480 [merge]
committer: Georgy Redkozubov <georgy.redkozubov@linaro.org>
branch nick: lit-trunk
timestamp: Thu 2011-12-22 20:10:22 +0400
message:
  [r=mabac] Unset TMPDIR variable in linaro-hwpack-install. Fixes bug 834803
modified:
  linaro-hwpack-install


--
lp:linaro-image-tools
https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk

You are subscribed to branch lp:linaro-image-tools.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'linaro-hwpack-install'
--- linaro-hwpack-install	2011-06-23 12:52:43 +0000
+++ linaro-hwpack-install	2011-12-06 03:35:46 +0000
@@ -29,6 +29,11 @@ 
 
 set -e
 
+if [ -n "${TMPDIR+x}" ]; then
+ echo -e "\nWARNING: TMPDIR variable is set. It will be unset because in chroot environment it likely doesn't exist and can lead to error messages.\n"
+ unset TMPDIR
+fi
+
 LOCKFILE="/var/lock/hwpack"
 TEMP_DIR=$(mktemp -d)
 HWPACK_DIR="${TEMP_DIR}/unpacked"