Update extract.py

This commit is contained in:
gutosie
2020-04-11 10:23:30 +02:00
committed by GitHub
parent 6d11b1b3f7
commit 71bc17c6c9

View File

@@ -589,8 +589,8 @@ def NEOBootMainEx(source, target, stopenigma, CopyFiles, CopyKernel, TvList, Ste
out.write('Flash')
out.close()
if '.tar.xz' not in source and not os.path.exists('' + getNeoLocation() + '/ImageBoot/%s/etc/issue' % target):
os.system('echo ""; echo "Nie zainstalowano systemu ! Powodem b\xc5\x82\xc4\x99du instalacji mo\xc5\xbce by\xc4\x87 \xc5\xbale spakowany plik image w zip lub nie jest to sytem dla Twojego modelu ."')
os.system('echo "Instalowany system może sieę nie uruchomić poprawnie! Sprawdż poprawność kataogow w instalwoanym image!!!"')
os.system('echo ""; echo "No system installed! The reason for the installation error may be badly packed image files or it is not a system for your model."')
os.system('echo "The installed system may not start. Check the correctness of the installed image directory!!!"')
os.system('rm -r ' + getNeoLocation() + '/ImageBoot/%s' % target )
if os.path.exists('' + getNeoLocation() + 'ubi'):
@@ -605,7 +605,7 @@ def NEOBootMainEx(source, target, stopenigma, CopyFiles, CopyKernel, TvList, Ste
os.system('rm -f /tmp/init4; init 3')
os.system('echo "End of installation:"; date +%T')
os.system('echo "Press green to save of the installation process in /tmp"')
os.system('echo "If you want to save the installation process from the console press green.\nPress green to save of the installation process in /tmp"')
def RemoveUnpackDirs():
os.chdir(media + '/ImagesUpload')