diff options
author | Benjamin Drung <bdrung@ubuntu.com> | 2010-01-11 23:30:43 +0100 |
---|---|---|
committer | Benjamin Drung <bdrung@ubuntu.com> | 2010-01-11 23:30:43 +0100 |
commit | 7d5ba16f8f933d490a413e3145c20867ccde4627 (patch) | |
tree | fa243485dcd0a70f0550a802bd44b37c50d0fb0d /src | |
parent | 6f552eb2940efa5fc4ccc6afe924bbb1fd110daf (diff) |
- create links for architecture independent extensions in /usr/share instead
of /usr/lib (Closes: #564671)
- update src/install-xpi
Diffstat (limited to 'src')
-rwxr-xr-x | src/install-xpi | 11 |
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 |