update-manager: add method to always show available updates

This commit is contained in:
Ruben Rodriguez 2023-04-30 20:56:44 -04:00
parent a600bccad3
commit c98d6244c9
2 changed files with 15 additions and 2 deletions

View file

@ -37,7 +37,7 @@ diff -ru source.orig/UpdateManager/UpdateManager.py source/UpdateManager/UpdateM
self.start_available()
def start_update(self):
+ if apt_pkg.config.find_i("APT::Periodic::Update-Package-Lists") == 0:
+ if not self.options.no_check_screen and apt_pkg.config.find_i("APT::Periodic::Update-Package-Lists") == 0:
+ self._start_pane(ShouldUpdateDialog(self))
+ return
+ if self.options.no_update:
@ -51,3 +51,16 @@ diff -ru source.orig/UpdateManager/UpdateManager.py source/UpdateManager/UpdateM
if self.options.no_update:
self.start_available()
return
diff -ru source.orig/update-manager source/update-manager
--- source.orig/update-manager 2023-04-30 19:59:16.611564826 -0400
+++ source/update-manager 2023-04-30 20:10:25.515512178 -0400
@@ -92,6 +92,9 @@
parser.add_option ("--no-update", action="store_true",
dest="no_update", default=False,
help=_("Do not check for updates when starting"))
+ parser.add_option ("--no-check-screen", action="store_true",
+ dest="no_check_screen", default=True,
+ help=_("Don't show screen preventing unwanted connections to the Internet"))
parser.add_option ("", "--debug", action="store_true", default=False,
help=_("Show debug messages"))

View file

@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (C) 2008-2020 Ruben Rodriguez <ruben@trisquel.info>
# Copyright (C) 2008-2023 Ruben Rodriguez <ruben@trisquel.info>
# Copyright (C) 2023 Luis Guzmán <ark@switnet.org>
# Copyright (C) 2019 Mason Hock <mason@masonhock.com>
#