mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-03 04:35:47 +01:00
Update extract.py
This commit is contained in:
@@ -952,8 +952,18 @@ def NEOBootExtract(source, target, ZipDelete, Nandsim):
|
|||||||
fn = 'NewImage'
|
fn = 'NewImage'
|
||||||
sourcelist = []
|
sourcelist = []
|
||||||
for fn in os.listdir('%sImagesUpload' % getNeoLocation()):
|
for fn in os.listdir('%sImagesUpload' % getNeoLocation()):
|
||||||
if fn.find('.rootfs.tar.xz') != -1 or fn.find('.tar.xz') or fn.find('.tar.bz2') or fn.find('.tar.gz') or fn.find('.tar') or fn.find('.gz'):
|
if fn.find('.rootfs.tar.xz') != -1:
|
||||||
os.system('touch /tmp/other_image')
|
os.system('touch /tmp/other_image')
|
||||||
|
elif fn.find('.tar.xz') != -1:
|
||||||
|
os.system('touch /tmp/other_image')
|
||||||
|
elif fn.find('.tar.bz2') != -1:
|
||||||
|
os.system('touch /tmp/other_image')
|
||||||
|
elif fn.find('.tar.gz') != -1:
|
||||||
|
os.system('touch /tmp/other_image')
|
||||||
|
elif fn.find('.tar') != -1:
|
||||||
|
os.system('touch /tmp/other_image')
|
||||||
|
elif fn.find('.gz') != -1:
|
||||||
|
os.system('touch /tmp/other_image')
|
||||||
|
|
||||||
#Instalacja MIPS
|
#Instalacja MIPS
|
||||||
if getCPUtype() == 'MIPS' and not os.path.exists('/tmp/root_jffs2') and not os.path.exists('/tmp/other_image'):
|
if getCPUtype() == 'MIPS' and not os.path.exists('/tmp/root_jffs2') and not os.path.exists('/tmp/other_image'):
|
||||||
@@ -1732,7 +1742,7 @@ def NEOBootExtract(source, target, ZipDelete, Nandsim):
|
|||||||
os.system('echo "NeoBoot wykrył błąd!!! Prawdopodobnie brak pliku instalacyjnego."')
|
os.system('echo "NeoBoot wykrył błąd!!! Prawdopodobnie brak pliku instalacyjnego."')
|
||||||
|
|
||||||
#Instalacja other image:
|
#Instalacja other image:
|
||||||
if not os.path.exists('/tmp/xz-gz-tar'):
|
elif not os.path.exists('/tmp/xz-gz-tar'):
|
||||||
fn = 'NewImage'
|
fn = 'NewImage'
|
||||||
sourcelist = []
|
sourcelist = []
|
||||||
for fn in os.listdir('%sImagesUpload' % getNeoLocation()):
|
for fn in os.listdir('%sImagesUpload' % getNeoLocation()):
|
||||||
|
|||||||
Reference in New Issue
Block a user