Update plugin.py

This commit is contained in:
gutosie
2021-12-11 19:21:56 +02:00
committed by GitHub
parent 9c06cb63ea
commit 59a0f5591c

View File

@@ -1377,9 +1377,10 @@ class NeoBootImageChoose(Screen):
cmd1 = 'chattr -i %sImageBoot/' % getNeoLocation() + self.mysel
cmd2 = 'chattr -i %sImageBoot/' % getNeoLocation() + self.mysel + '/usr/lib/periodon/.activatedmac'
cmd3 = 'chattr -i %sImageBoot/' % getNeoLocation() + self.mysel + '' + LinkNeoBoot +'/plugin.py'
if fileExists('%sImageBoot/' % getNeoLocation() + self.mysel + '' + LinkNeoBoot +'/plugin.pyo'):
cmd4 = 'chattr -i %sImageBoot/' % getNeoLocation() + self.mysel + '' + LinkNeoBoot +'/plugin.pyo'
cmd5 = 'rm -r %sImageBoot/' % getNeoLocation() + self.mysel
self.session.openWithCallback(self.up, Console, _('NeoBoot: Deleting Image'), [cmd, cmd1, cmd2, cmd3, cmd4, cmd5])
self.session.openWithCallback(self.up, Console, _('NeoBoot: Deleting Image'), [cmd, cmd1, cmd2, cmd3, cmd5])
else:
self.session.open(MessageBox, _('Removing canceled!'), MessageBox.TYPE_INFO)