commit 8a0b4d92a6694d0715e4c5405f31a27733bac88c
parent 3d3b81772401f5cfb645ca6913284405d8c572ed
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 26 May 2015 04:44:02 -0400
Fix PDF tools installation on Linux
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js
@@ -377,7 +377,8 @@ Zotero.File = new function(){
this.download = Zotero.Promise.coroutine(function* (uri, path) {
- var msg = "Saving " + (uri.spec ? uri.spec : uri) + " to " + (path.path ? path.path : path);
+ Zotero.debug("Saving " + (uri.spec ? uri.spec : uri)
+ + " to " + (path.path ? path.path : path));
var deferred = Zotero.Promise.defer();
NetUtil.asyncFetch(uri, function (is, status, request) {
diff --git a/test/tests/fulltextTest.js b/test/tests/fulltextTest.js
@@ -11,7 +11,7 @@ describe("Zotero.Fulltext", function () {
it("should install the PDF tools", function* () {
var version = "3.04";
var dataDir = Zotero.getZoteroDirectory().path;
- var execFileName = 'pdfinfo-' + Zotero.platform;
+ var execFileName = Zotero.Fulltext.pdfInfoFileName;
var execContents = new Array(50001).join('a');
var execPath = OS.Path.join(dataDir, execFileName);
var versionFileName = execFileName + '.version';