🐛 Fix manifest verification for retailclient_squadron157
This commit is contained in:
parent
04cc63f5b1
commit
1326f5b5f4
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
if (RequiresElevation.type !== 'element' || RequiresElevation.name !== 'RequiresElevation' || RequiresElevation.attributes !== undefined || RequiresElevation.elements === undefined) {
|
||||||
throw new Error('Expected RequiresElevation element.');
|
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.');
|
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') {
|
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.');
|
throw new Error('Expected Value element.');
|
||||||
}
|
}
|
||||||
//TODO: parse Key and Value
|
//parse Key and Value
|
||||||
const valueName = String(Value.elements[0].text);
|
const valueName = String(Value.elements[0].text);
|
||||||
switch (keyName) {
|
switch (keyName) {
|
||||||
case 'SSN_VERSION':
|
case 'SSN_VERSION':
|
||||||
|
|
Loading…
Reference in a new issue