Bläddra i källkod

Minor edits

production
guest 2 år sedan
förälder
incheckning
5f952e7448
1 ändrade filer med 13 tillägg och 2 borttagningar
  1. 13
    2
      index.js

+ 13
- 2
index.js Visa fil

@@ -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()

Laddar…
Avbryt
Spara