| 
									
										
										
										
											2022-04-12 04:21:55 -07:00
										 |  |  | #!/usr/bin/env python3 | 
					
						
							| 
									
										
										
										
											2019-05-29 09:40:02 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | import zipfile | 
					
						
							|  |  |  | import sys | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def main(zip_path, manifest_out): | 
					
						
							|  |  |  |   with open(manifest_out, 'w') as manifest, \ | 
					
						
							|  |  |  |       zipfile.ZipFile(zip_path, 'r', allowZip64=True) as z: | 
					
						
							|  |  |  |     for name in sorted(z.namelist()): | 
					
						
							|  |  |  |       manifest.write(name + '\n') | 
					
						
							|  |  |  |   return 0 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if __name__ == '__main__': | 
					
						
							| 
									
										
										
										
											2022-03-20 19:11:21 -07:00
										 |  |  |   sys.exit(main(sys.argv[1], sys.argv[2])) |