Fix PDF tools installation on Linux
This commit is contained in:
parent
3d3b817724
commit
8a0b4d92a6
|
@ -377,7 +377,8 @@ Zotero.File = new function(){
|
||||||
|
|
||||||
|
|
||||||
this.download = Zotero.Promise.coroutine(function* (uri, path) {
|
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();
|
var deferred = Zotero.Promise.defer();
|
||||||
NetUtil.asyncFetch(uri, function (is, status, request) {
|
NetUtil.asyncFetch(uri, function (is, status, request) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ describe("Zotero.Fulltext", function () {
|
||||||
it("should install the PDF tools", function* () {
|
it("should install the PDF tools", function* () {
|
||||||
var version = "3.04";
|
var version = "3.04";
|
||||||
var dataDir = Zotero.getZoteroDirectory().path;
|
var dataDir = Zotero.getZoteroDirectory().path;
|
||||||
var execFileName = 'pdfinfo-' + Zotero.platform;
|
var execFileName = Zotero.Fulltext.pdfInfoFileName;
|
||||||
var execContents = new Array(50001).join('a');
|
var execContents = new Array(50001).join('a');
|
||||||
var execPath = OS.Path.join(dataDir, execFileName);
|
var execPath = OS.Path.join(dataDir, execFileName);
|
||||||
var versionFileName = execFileName + '.version';
|
var versionFileName = execFileName + '.version';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user