summaryrefslogtreecommitdiff
path: root/src/install-xpi
diff options
context:
space:
mode:
Diffstat (limited to 'src/install-xpi')
-rwxr-xr-xsrc/install-xpi11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/install-xpi b/src/install-xpi
index 7396a9d..9ee6a7c 100755
--- a/src/install-xpi
+++ b/src/install-xpi
@@ -77,11 +77,11 @@ def install_xpi(script_name, package, xpi_file, exclude, install_dir, links, cor
xpi_content = zfobj.namelist()
# determine installation directory
+ if get_arch(package) == "all":
+ lib_share_dir = "share"
+ else:
+ lib_share_dir = "lib"
if install_dir is None:
- if get_arch(package) == "all":
- lib_share_dir = "share"
- else:
- lib_share_dir = "lib"
install_dir = os.path.join("usr", lib_share_dir, package)
copy_dir = os.path.join("debian", package, install_dir.strip("/"))
if verbose:
@@ -130,7 +130,8 @@ def install_xpi(script_name, package, xpi_file, exclude, install_dir, links, cor
extension_id = get_extension_id(os.path.join(copy_dir, "install.rdf"))
target_applications = get_target_applications(script_name, os.path.join(copy_dir, "install.rdf"))
for target_application in target_applications:
- destination = os.path.join("/usr/lib/mozilla/extensions/", target_application, extension_id)
+ destination = os.path.join("/usr", lib_share_dir, "mozilla/extensions",
+ target_application, extension_id)
links.add(destination)
# create symlinks