Merge pull request #1746 from ether/develop

Bring in latest fixes.  No flow included, too much headache.
pull/1747/merge
John McLear 2013-04-15 16:08:38 -07:00
commit bf467594d9
3 changed files with 11 additions and 8 deletions

View File

@ -1,6 +1,6 @@
language: node_js
node_js:
- "0.8"
- "0.10"
install:
- "bin/installDeps.sh"
- "export GIT_HASH=$(cat .git/HEAD | head -c 7)"
@ -11,12 +11,13 @@ script:
env:
global:
- secure: "OxZ2s724S96xu02746LUN+4lBckAe1BOICJjfA4jnFPNpiNU6XoMH52f+LgG\nZzAwu6xMTv+NsaLGp6Avm3cx4GZ+jIiHe4NB9XOgYPa0r0TBIi3ueWYPDyVv\nCniS/4qX68DoFNV4lh7zMBXn0IIPxT4Wppm3desBpjWDP/SdoRs="
- SAUCE_USER=pita
- SAUCE_USER=etherpad
jdk:
- oraclejdk6
notifications:
email:
- petermartischka@googlemail.com
- contact@etherpad.org
irc:
channels:
- "irc.freenode.org#etherpad-lite-dev"
- "irc.freenode.org#etherpad-lite-dev"

View File

@ -127,19 +127,21 @@ else
doConvertTask = function(task, callback)
{
abiword.stdin.write("convert " + task.srcFile + " " + task.destFile + " " + task.type + "\n");
//create a callback that calls the task callback and the caller callback
stdoutCallback = function (err)
{
callback();
console.log("queue continue");
task.callback(err);
try{
task.callback(err);
}catch(e){
console.error("Abiword File failed to convert", e);
}
};
};
//Queue with the converts we have to do
var queue = async.queue(doConvertTask, 1);
exports.convertFile = function(srcFile, destFile, type, callback)
{
queue.push({"srcFile": srcFile, "destFile": destFile, "type": type, "callback": callback});

View File

@ -17,9 +17,9 @@
"resolve" : "0.2.x",
"socket.io" : "0.9.x",
"ueberDB" : "0.2.x",
"express" : "3.1.x",
"async" : "0.1.x",
"express" : "3.1.0",
"connect" : "2.4.x",
"connect" : "2.7.x",
"clean-css" : "0.3.2",
"uglify-js" : "1.2.5",
"formidable" : "1.0.9",