From c98d6244c90b0dd9f4d77c9d3e8843e6c66e0afb Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez <ruben@trisquel.info> Date: Sun, 30 Apr 2023 20:56:44 -0400 Subject: [PATCH] update-manager: add method to always show available updates --- .../update-manager/prevent-autoconnection.patch | 15 ++++++++++++++- helpers/make-update-manager | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/helpers/DATA/update-manager/prevent-autoconnection.patch b/helpers/DATA/update-manager/prevent-autoconnection.patch index b617a7f4..48b84c7c 100644 --- a/helpers/DATA/update-manager/prevent-autoconnection.patch +++ b/helpers/DATA/update-manager/prevent-autoconnection.patch @@ -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")) + diff --git a/helpers/make-update-manager b/helpers/make-update-manager index de6483f5..3e3990ac 100644 --- a/helpers/make-update-manager +++ b/helpers/make-update-manager @@ -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> # -- GitLab