From 396ec5e0452ca486a397cf4890f476e62d73d4c8 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Tue, 16 Nov 2010 00:09:08 +0100 Subject: * Drop backwards compatibility for Icedove/Thunderbird << 3.0. - update src/install-xpi --- src/install-xpi | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src') 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] -- cgit v1.2.3