@@ -1692,12 +1692,12 @@ command extensionValidateLCEPackage pPackage, @rManifestDataA
16921692 end if
16931693
16941694 # Get initial manifest data needed for loading
1695- local tManifestData , tManifestXMLTree
1695+ local tManifestText , tManifestData , tManifestXMLTree
16961696
16971697 # Extract the package manfiest to a variable to read key data
16981698 if tError is empty then
16991699 revZipExtractItemToVariable pPackage , "manifest.xml" , \
1700- "tManifestData "
1700+ "tManifestText "
17011701 if the result is not empty then
17021702 put "unable to extract manifest data" into tError
17031703 end if
@@ -1709,7 +1709,7 @@ command extensionValidateLCEPackage pPackage, @rManifestDataA
17091709 return tError
17101710 end if
17111711
1712- put revXMLCreateTree(tManifestData ,true ,true ,false ) into tManifestXMLTree
1712+ put revXMLCreateTree(tManifestText ,true ,true ,false ) into tManifestXMLTree
17131713 if tManifestXMLTree is not a number then
17141714 return "invalid manifest"
17151715 end if
@@ -1724,6 +1724,14 @@ command extensionValidateLCEPackage pPackage, @rManifestDataA
17241724 end if
17251725 end repeat
17261726
1727+ # Fetch the manifest requirements
1728+ local tRequires
1729+ put __extensionManifestValueFromTree(tManifestXMLTree , "requires" ) \
1730+ into tRequires
1731+ if tRequires is an array then
1732+ put tRequires into tManifestData ["requires" ]
1733+ end if
1734+
17271735 revXMLDeleteTree tManifestXMLTree
17281736
17291737 if tError is not empty then
@@ -1756,6 +1764,7 @@ private function __extensionManifestValueFromTree pTreeID, pProperty
17561764 end if
17571765 put tName into tValue [tCount ]
17581766 end repeat
1767+ break
17591768 default
17601769 put revXMLNodeContents (pTreeID ,"/package/" & pProperty ) \
17611770 into tValue
0 commit comments