summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Drung <bdrung@ubuntu.com>2010-11-16 00:09:08 +0100
committerBenjamin Drung <bdrung@ubuntu.com>2010-11-16 00:09:08 +0100
commit396ec5e0452ca486a397cf4890f476e62d73d4c8 (patch)
tree4013cb64bb77b03a12fc9ec4601717749a16f0d1 /src
parenta1b69e4d102e4d56cf637a1e8638ba5026ee0f09 (diff)
* Drop backwards compatibility for Icedove/Thunderbird << 3.0.
- update src/install-xpi
Diffstat (limited to 'src')
-rwxr-xr-xsrc/install-xpi14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/install-xpi b/src/install-xpi
index 1235047..0e547eb 100755
--- a/src/install-xpi
+++ b/src/install-xpi
@@ -78,15 +78,6 @@ def get_xul_apps():
rows.append(row)
return rows
-def incompatible_apps(target_applications):
- """There are still some application that do not scan
- "/usr/{lib,share}/mozilla/extensions/$target_application" for extensions."""
- xul_apps = filter(lambda x: x["id"] in target_applications, get_xul_apps())
- app_list = reduce(lambda l, x: l + [x["package"]], xul_apps, list())
- incompatible_apps = ["icedove", "thunderbird"]
- incompatible_apps = filter(lambda x: x in app_list, incompatible_apps)
- return incompatible_apps
-
def install_xpi(script_name, package, xpi_file, exclude, install_dir, links,
correct_permissions, remove_licenses, system_prefs, verbose=False):
# get xpi file content list
@@ -185,11 +176,6 @@ def install_xpi(script_name, package, xpi_file, exclude, install_dir, links,
target_application, extension_id)
links.add(destination)
- # backwards compatibility: create symlinks for applications that do not
- # scan /usr/{lib,share}/mozilla/extensions/target_application for extensions
- for app in incompatible_apps(target_applications):
- links.add(os.path.join("/usr/lib", app, "extensions", extension_id))
-
# create symlinks
for link in links:
command = ["dh_link", "-p" + package, install_dir, link]