| @@ -2337,6 +2337,7 @@ var elxr = { | |||
| else { | |||
| var t2 = function(){ | |||
| return performPull(def).then(() => { | |||
| console.log('pulled ' + JSON.stringify(def.repo)) | |||
| return true; | |||
| }).catch((e) => { | |||
| console.error(e) | |||
| @@ -2384,8 +2385,13 @@ var elxr = { | |||
| if(def.repos) { | |||
| var regularpulltasks = function(){ | |||
| var pendingpulls = []; | |||
| def.repos.forEach((def) => { pendingpulls.push(performPull(def)) }) | |||
| return Promise.all(pendingpulls).finally(Traq.finally) | |||
| def.repos.forEach((def) => { | |||
| pendingpulls.push( | |||
| performPull(def).then(()=>{ console.log('pulled ' + JSON.stringify(def.repo)) }) | |||
| .catch(e => { console.log(e); throw e }) | |||
| ) | |||
| }) | |||
| return any(pendingpulls).finally(Traq.finally) | |||
| } | |||
| regularpulltasks.statuslog = statuslog | |||
| } | |||
| @@ -4274,6 +4280,11 @@ shell_verse.acquireElevationState().then((elevationstate) => { | |||
| }) | |||
| }) | |||
| }) | |||
| // .then( () => { | |||
| // console.log(process._getActiveHandles()); | |||
| // console.log(process._getActiveRequests()); | |||
| // }) | |||
| // detect if alread installed -> Take no action. | |||
| // download if no installer avalable -> next() | |||