From 30d6b18ef455c113fa0be6fc640d15ce0a327a29 Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Fri, 24 Feb 2006 21:10:13 +0000 Subject: [PATCH] Bug 328505: --install-app fails on Linux for packages without a vendor, patch by Robert Marshall (tH) , r=bsmedberg --- xulrunner/setup/nsXULAppInstall.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xulrunner/setup/nsXULAppInstall.js b/xulrunner/setup/nsXULAppInstall.js index 281f962e21d..06c505ed2b7 100644 --- a/xulrunner/setup/nsXULAppInstall.js +++ b/xulrunner/setup/nsXULAppInstall.js @@ -247,7 +247,8 @@ const AppInstall = { aDirectory = Components.classes["@mozilla.org/file/local;1"]. createInstance(nsILocalFile); aDirectory.initWithPath("/usr/lib"); - aDirectory.append(vendor.toLowerCase()); + if (vendor) + aDirectory.append(vendor.toLowerCase()); #endif #endif }