tracker/tracker-firefox-no-tracker-0.10.patch

43 lines
1.4 KiB
Diff

From 584e4a678b9b4b873ab8ac6cdc82b91b5b184df9 Mon Sep 17 00:00:00 2001
From: Martyn Russell <martyn@lanedo.com>
Date: Thu, 29 Sep 2011 10:55:16 +0100
Subject: [PATCH] firefox: Don't try to load 0.10.x libraries, we're using APIs not available there
Fixes GB#660123.
---
src/plugins/firefox/chrome/content/bindings.js | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/src/plugins/firefox/chrome/content/bindings.js b/src/plugins/firefox/chrome/content/bindings.js
index 87c2756..1c5dff2 100644
--- a/src/plugins/firefox/chrome/content/bindings.js
+++ b/src/plugins/firefox/chrome/content/bindings.js
@@ -2,7 +2,7 @@ if (!org.bustany.TrackerFox.TrackerSparql || !org.bustany.TrackerFox.TrackerSpar
org.bustany.TrackerFox.TrackerSparql = {
__initialized: true,
- _trackerSparqlPath: "libtracker-sparql-0.10.so.0",
+ _trackerSparqlPath: "libtracker-sparql-0.12.so.0",
_lib: null,
init: function () {
@@ -18,14 +18,8 @@ org.bustany.TrackerFox.TrackerSparql = {
try {
tracker._lib = ctypes.open (tracker._trackerSparqlPath);
} catch (e) {
- tracker._trackerSparqlPath = "libtracker-sparql-0.12.so.0";
-
- try {
- tracker._lib = ctypes.open (tracker._trackerSparqlPath);
- } catch (e) {
- dump("Could not load libtracker-sparql 0.10 or 0.12\n");
- return false;
- }
+ dump("Could not load libtracker-sparql 0.12\n");
+ return false;
}
// GLib types
--
1.7.4.1