From 1326f5b5f40f7665b55eef624ac91c2cc5f55c5d Mon Sep 17 00:00:00 2001 From: C-3PO Date: Fri, 9 Nov 2018 03:18:21 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20manifest=20verification=20?= =?UTF-8?q?for=20retailclient=5Fsquadron157?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/verify/verifyPatchmanifest.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssn/verify/verifyPatchmanifest.ts b/src/ssn/verify/verifyPatchmanifest.ts index 3582898..c9b3e95 100644 --- a/src/ssn/verify/verifyPatchmanifest.ts +++ b/src/ssn/verify/verifyPatchmanifest.ts @@ -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':