From patchwork Thu Dec 22 16:12:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgy Redkozubov X-Patchwork-Id: 5956 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 85CE723EDC for ; Thu, 22 Dec 2011 16:12:16 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 77E41A1866D for ; Thu, 22 Dec 2011 16:12:16 +0000 (UTC) Received: by eaac11 with SMTP id c11so5935453eaa.11 for ; Thu, 22 Dec 2011 08:12:16 -0800 (PST) Received: by 10.205.120.14 with SMTP id fw14mr3268112bkc.53.1324570335063; Thu, 22 Dec 2011 08:12:15 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.82.144 with SMTP id ac16cs69322bkc; Thu, 22 Dec 2011 08:12:14 -0800 (PST) Received: by 10.204.130.67 with SMTP id r3mr3292187bks.92.1324570334235; Thu, 22 Dec 2011 08:12:14 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id fh1si4893923wbb.97.2011.12.22.08.12.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Dec 2011 08:12:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RdlFd-0004kb-Q9 for ; Thu, 22 Dec 2011 16:12:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id B8497E0180 for ; Thu, 22 Dec 2011 16:12:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: linaro-image-tools X-Launchpad-Branch: ~linaro-image-tools/linaro-image-tools/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 480 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [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> Date: Thu, 22 Dec 2011 16:12:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14487"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 74e89f147635be674b369141ddb91c9b026f9ce0 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 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 === 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"