File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,28 @@ def check_package():
217
217
'node_modules' ,
218
218
dependency_name ,
219
219
'package.json' )
220
+ if dependency_name == 'vnu-jar' :
221
+ vnu_jar_path = os .path .join (
222
+ webperf_dir ,
223
+ 'node_modules' ,
224
+ dependency_name ,
225
+ 'build' ,
226
+ 'dist' ,
227
+ 'vnu.jar' )
228
+ if os .path .exists (vnu_jar_path ):
229
+ try :
230
+ import zipfile
231
+ archive = zipfile .ZipFile (vnu_jar_path , 'r' )
232
+ manifest_content = archive .read ('META-INF/MANIFEST.MF' ).decode ()
233
+ if f'Implementation-Version: { dependency_version } ' in manifest_content :
234
+ print (f"\t \t - { dependency_name } : OK" )
235
+ continue
236
+ except Exception as ex :
237
+ print ('ERROR' , ex )
238
+ _ = 1
239
+ print (f"\t \t - { dependency_name } : Unknown version" )
240
+ continue
241
+
220
242
if not os .path .exists (dependency_package_path ):
221
243
print (f"\t \t - { dependency_name } v{ dependency_version } : Not found" )
222
244
continue
You can’t perform that action at this time.
0 commit comments