Enable curl download

This commit is contained in:
C-3PO 2018-10-14 00:28:24 +02:00
parent 40bb7c8178
commit cb0807d3cf
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
3 changed files with 6 additions and 6 deletions

View file

@ -62,7 +62,7 @@ export default async function getPatch({ product, from, to, sourceDirectory, tar
//start download, making sure that .zip file downloads first
const indexOfLastFile = solidpkg.files.length - 1;
const zipFile = getUrlContents(createUrlObject(solidpkg.files[indexOfLastFile]));
const diskFiles = solidpkg.files.slice(0, indexOfLastFile).map((file) => downloadWrapper({ ...createUrlObject(file), useCurl: false }));
const diskFiles = solidpkg.files.slice(0, indexOfLastFile).map((file) => downloadWrapper({ ...createUrlObject(file), useCurl: true }));
//we can parse the file entries as soon as the .zip file is downloaded
const fileEntries = readSsnFile(await zipFile);