mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 09:44:15 +02:00
[improvement][aur] allowing the user to bypass checksum errors when installing / upgrading / downgrading packages
This commit is contained in:
@@ -585,10 +585,12 @@ class ArchManager(SoftwareManager):
|
||||
return False
|
||||
|
||||
if check_res.get('validity_check'):
|
||||
handler.watcher.show_message(title=self.i18n['arch.aur.install.validity_check.title'],
|
||||
body=self.i18n['arch.aur.install.validity_check.body'].format(bold(pkgname)),
|
||||
type_=MessageType.ERROR)
|
||||
return False
|
||||
body = "<p>{}</p><p>{}</p>".format(self.i18n['arch.aur.install.validity_check.body'].format(bold(pkgname)),
|
||||
self.i18n['arch.aur.install.validity_check.proceed'])
|
||||
return not handler.watcher.request_confirmation(title=self.i18n['arch.aur.install.validity_check.title'].format('( checksum )'),
|
||||
body=body,
|
||||
confirmation_label=self.i18n['no'].capitalize(),
|
||||
deny_label=self.i18n['yes'].capitalize())
|
||||
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user