mirror of
				https://github.com/gutosie/neoboot.git
				synced 2025-11-03 20:55:47 +01:00 
			
		
		
		
	Update plugin.py
This commit is contained in:
		@@ -1471,12 +1471,14 @@ class NeoBootImageChoose(Screen):
 | 
				
			|||||||
        if yesno:
 | 
					        if yesno:
 | 
				
			||||||
            cmd = _("echo -e 'Deleting in progress...\n'")
 | 
					            cmd = _("echo -e 'Deleting in progress...\n'")
 | 
				
			||||||
            cmd1 = 'chattr -i %sImageBoot/' % getNeoLocation() + self.mysel
 | 
					            cmd1 = 'chattr -i %sImageBoot/' % getNeoLocation() + self.mysel
 | 
				
			||||||
 | 
					            if fileExists('%sImageBoot/' % getNeoLocation() + self.mysel + '/usr/lib/periodon/.activatedmac'):                         
 | 
				
			||||||
                cmd2 = 'chattr -i %sImageBoot/' % getNeoLocation() + self.mysel + '/usr/lib/periodon/.activatedmac'
 | 
					                cmd2 = 'chattr -i %sImageBoot/' % getNeoLocation() + self.mysel + '/usr/lib/periodon/.activatedmac'
 | 
				
			||||||
 | 
					            if fileExists('%sImageBoot/' % getNeoLocation() + self.mysel + '' + LinkNeoBoot +'/plugin.py'):
 | 
				
			||||||
                cmd3 = 'chattr -i %sImageBoot/ ' % getNeoLocation() + self.mysel + '' + LinkNeoBoot +'/plugin.py'
 | 
					                cmd3 = 'chattr -i %sImageBoot/ ' % getNeoLocation() + self.mysel + '' + LinkNeoBoot +'/plugin.py'
 | 
				
			||||||
            if fileExists('%sImageBoot/' % getNeoLocation() + self.mysel + '' + LinkNeoBoot +'/plugin.pyo'):
 | 
					            if fileExists('%sImageBoot/' % getNeoLocation() + self.mysel + '' + LinkNeoBoot +'/plugin.pyo'):
 | 
				
			||||||
                cmd4 = 'chattr -i %sImageBoot/' % getNeoLocation() + self.mysel + '' + LinkNeoBoot +'/plugin.pyo'
 | 
					                cmd4 = 'chattr -i %sImageBoot > /dev/null 2>&1/' % getNeoLocation() + self.mysel + '' + LinkNeoBoot +'/plugin.pyo'
 | 
				
			||||||
            cmd5 = 'rm -r %sImageBoot/' % getNeoLocation() + self.mysel
 | 
					            cmd5 = 'rm -r %sImageBoot/' % getNeoLocation() + self.mysel
 | 
				
			||||||
            self.session.openWithCallback(self.up, Console, _('NeoBoot: Deleting Image'), [cmd, cmd1, cmd2, cmd3, cmd5])
 | 
					            self.session.openWithCallback(self.up, Console, _('NeoBoot: Deleting Image'), [cmd, cmd1, cmd5])
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self.session.open(MessageBox, _('Removing canceled!'), MessageBox.TYPE_INFO)
 | 
					            self.session.open(MessageBox, _('Removing canceled!'), MessageBox.TYPE_INFO)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user