summaryrefslogtreecommitdiffstats
path: root/o3d/installer
diff options
context:
space:
mode:
authorzhurunz@google.com <zhurunz@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 17:42:26 +0000
committerzhurunz@google.com <zhurunz@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 17:42:26 +0000
commit3d2f01d1cbe644706fa04a92f0bd815b3b868d4d (patch)
tree456dfb3203e836493197d282ff963ba91ca1a6fe /o3d/installer
parentc1275ae20c3e2c712d777de04340a671c8aabb94 (diff)
downloadchromium_src-3d2f01d1cbe644706fa04a92f0bd815b3b868d4d.zip
chromium_src-3d2f01d1cbe644706fa04a92f0bd815b3b868d4d.tar.gz
chromium_src-3d2f01d1cbe644706fa04a92f0bd815b3b868d4d.tar.bz2
Work around exception in command "which" while running GYP inside ChromiumOS chroot.
ChromiumOS is trying to remove dpkg-buildpackage. If running inside ChromiumOS chroot, the "which" can throw exception when the target file is missing. ( dpkg-buildpackage will be missing in this case ) This doesn't happen with the "which" on Ubuntu. Work around it by using "whereis" instead. It works on both ChromiumOS choot and Ubuntu. Review URL: http://codereview.chromium.org/2945011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52099 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/installer')
-rw-r--r--o3d/installer/linux/installer.gyp2
1 files changed, 1 insertions, 1 deletions
diff --git a/o3d/installer/linux/installer.gyp b/o3d/installer/linux/installer.gyp
index c09b045..91f4898 100644
--- a/o3d/installer/linux/installer.gyp
+++ b/o3d/installer/linux/installer.gyp
@@ -8,7 +8,7 @@
'target_name': 'installer',
'type': 'none',
'conditions': [
- [ '"<!(which dpkg-buildpackage || true)" != ""',
+ [ '"<!(whereis dpkg-buildpackage)" != "dpkg-buildpackage:"',
{
'dependencies': [
'debian.in/debian.gyp:debian',