mirror of
				https://github.com/gutosie/neoboot.git
				synced 2025-10-31 11:25:47 +01:00 
			
		
		
		
	Update extract.py
This commit is contained in:
		| @@ -3,6 +3,41 @@ | |||||||
| from __future__ import absolute_import | from __future__ import absolute_import | ||||||
| from __future__ import print_function | from __future__ import print_function | ||||||
| import sys | import sys | ||||||
|  | Search or jump to… | ||||||
|  | Pull requests | ||||||
|  | Issues | ||||||
|  | Marketplace | ||||||
|  | Explore | ||||||
|  |   | ||||||
|  | @gutosie  | ||||||
|  | gutosie | ||||||
|  | / | ||||||
|  | neoboot | ||||||
|  | Public | ||||||
|  | Code | ||||||
|  | Issues | ||||||
|  | Pull requests | ||||||
|  | Actions | ||||||
|  | Projects | ||||||
|  | Wiki | ||||||
|  | Security | ||||||
|  | Insights | ||||||
|  | Settings | ||||||
|  | neoboot | ||||||
|  | / | ||||||
|  | NeoBoot | ||||||
|  | / | ||||||
|  | extract.py | ||||||
|  | in | ||||||
|  | main | ||||||
|  |   | ||||||
|  |  | ||||||
|  | Spaces | ||||||
|  |  | ||||||
|  | 4 | ||||||
|  |  | ||||||
|  | No wrap | ||||||
|  |  | ||||||
| import os | import os | ||||||
| import struct | import struct | ||||||
| import shutil | import shutil | ||||||
| @@ -869,6 +904,8 @@ def NEOBootExtract(source, target, ZipDelete, Nandsim): | |||||||
|             rc = os.system(cmd) |             rc = os.system(cmd) | ||||||
|             cmd = '' + extensions_path + 'NeoBoot/bin/nfidump ' + sourcefile2 + ' ' + getNeoLocation() + 'ImageBoot/' + target |             cmd = '' + extensions_path + 'NeoBoot/bin/nfidump ' + sourcefile2 + ' ' + getNeoLocation() + 'ImageBoot/' + target | ||||||
|             rc = os.system(cmd) |             rc = os.system(cmd) | ||||||
|  |             if os.path.exists('%sImageBoot/%s/media/squashfs-images' % (media, target)): | ||||||
|  |                 os.system('cp -af /media/hdd/squashfs-images/* "%sImageBoot/%s/media/squashfs-images' % (media, target))             | ||||||
|             if ZipDelete == 'True': |             if ZipDelete == 'True': | ||||||
|                 rc = os.system('rm -rf ' + sourcefile2) |                 rc = os.system('rm -rf ' + sourcefile2) | ||||||
|             else: |             else: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user