✔ Fix check of reliable URL
This commit is contained in:
parent
fc9c441fa8
commit
c4b7934013
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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'])) {
|
||||||
|
|
Loading…
Reference in a new issue