✔ Fix check of reliable URL

This commit is contained in:
C-3PO 2018-07-09 16:00:59 +02:00
parent fc9c441fa8
commit c4b7934013
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ export default function createDirRecursively(folderName: string): Promise<void>
} else { } else {
reject('Is not a directory'); reject('Is not a directory');
} }
}) });
break; break;
} }

View file

@ -19,7 +19,7 @@ export default function verifySolidpkg(file: ISolid, { product, from, to }: {pro
if (![16068, 16097].includes(file.networkgroupid)) { if (![16068, 16097].includes(file.networkgroupid)) {
throw new Error(`Expected networkgroupid 16068 or 16097 but it was "${file.networkgroupid}".`); throw new Error(`Expected networkgroupid 16068 or 16097 but it was "${file.networkgroupid}".`);
} }
if (file.reliable !== `http://cdn-patch.swtor.com/patch/${product}/${product}_${from}to${to}/`) { if (file.reliable !== `http://cdn-patch.swtor.com/patch/${product.startsWith('retailclient_') ? `${product.substring(13)}/` : ''}${product}/${product}_${from}to${to}/`) {
throw new Error(`Expected reliable URL but it was "${file.reliable}".`); throw new Error(`Expected reliable URL but it was "${file.reliable}".`);
} }
if (!(['0', '1', '2']).includes(file['reliable-id'])) { if (!(['0', '1', '2']).includes(file['reliable-id'])) {