🐛 Fix manifest verification for retailclient_squadron157

This commit is contained in:
C-3PO 2018-11-09 03:18:21 +01:00
parent 04cc63f5b1
commit 1326f5b5f4
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -82,7 +82,7 @@ export default function verifyPatchmanifest(manifestFile: xmlJs.Element, product
if (RequiresElevation.type !== 'element' || RequiresElevation.name !== 'RequiresElevation' || RequiresElevation.attributes !== undefined || RequiresElevation.elements === undefined) {
throw new Error('Expected RequiresElevation element.');
}
if (RequiresElevation.elements.length !== 1 || RequiresElevation.elements[0].type !== 'text' || RequiresElevation.elements[0].text !== 'false') {
if (RequiresElevation.elements.length !== 1 || RequiresElevation.elements[0].type !== 'text' || (RequiresElevation.elements[0].text !== 'false' && product !== 'retailclient_squadron157')) {
throw new Error('Expected false in RequiresElevation element.');
}
@ -180,7 +180,7 @@ export default function verifyPatchmanifest(manifestFile: xmlJs.Element, product
if (Value.type !== 'element' || Value.name !== 'Value' || Value.attributes !== undefined || Value.elements === undefined || Value.elements.length !== 1 || Value.elements[0].type !== 'text') {
throw new Error('Expected Value element.');
}
//TODO: parse Key and Value
//parse Key and Value
const valueName = String(Value.elements[0].text);
switch (keyName) {
case 'SSN_VERSION':