update-manager: only check for dist-upgrades when requested
This commit is contained in:
parent
595e1066bc
commit
b6021201c7
2 changed files with 34 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
diff -ru source.orig/UpdateManager/Dialogs.py source/UpdateManager/Dialogs.py
|
||||
--- source.orig/UpdateManager/Dialogs.py 2018-02-12 20:44:33.321329066 -0500
|
||||
+++ source/UpdateManager/Dialogs.py 2018-02-12 20:45:28.141249480 -0500
|
||||
@@ -161,7 +162,20 @@
|
||||
@@ -161,7 +162,21 @@
|
||||
self.add_settings_button()
|
||||
self.focus_button = self.add_button(Gtk.STOCK_OK,
|
||||
self.window_main.close)
|
||||
|
|
@ -18,6 +18,7 @@ diff -ru source.orig/UpdateManager/Dialogs.py source/UpdateManager/Dialogs.py
|
|||
+ self.add_button(_("Ask Me Later"), self.window_main.close)
|
||||
+
|
||||
+ def check(self):
|
||||
+ self.window_main.options.no_update = False
|
||||
+ self.window_main.check_update()
|
||||
|
||||
class DistUpgradeDialog(InternalDialog):
|
||||
|
|
@ -64,3 +65,34 @@ diff -ru source.orig/update-manager source/update-manager
|
|||
parser.add_option ("", "--debug", action="store_true", default=False,
|
||||
help=_("Show debug messages"))
|
||||
|
||||
diff -ru source.orig/UpdateManager/UpdateManager.py source/UpdateManager/UpdateManager.py
|
||||
--- source.orig/UpdateManager/UpdateManager.py 2023-05-01 10:29:34.494164650 -0400
|
||||
+++ source/UpdateManager/UpdateManager.py 2023-05-01 12:04:53.000000000 -0400
|
||||
@@ -121,10 +121,11 @@
|
||||
"focus-in-event", self.on_initial_focus_in)
|
||||
|
||||
# Look for a new release in a thread
|
||||
- self.meta_release = MetaRelease(
|
||||
- self.options and self.options.devel_release,
|
||||
- self.options and self.options.use_proposed,
|
||||
- self.options and self.options.debug)
|
||||
+ if self.options.check_dist_upgrades and apt_pkg.config.find_i("APT::Periodic::Update-Package-Lists") != 0:
|
||||
+ self.meta_release = MetaRelease(
|
||||
+ self.options and self.options.devel_release,
|
||||
+ self.options and self.options.use_proposed,
|
||||
+ self.options and self.options.debug)
|
||||
|
||||
def begin_user_resizable(self, stored_width=0, stored_height=0):
|
||||
self.set_resizable(True)
|
||||
@@ -234,6 +235,11 @@
|
||||
self.start_available()
|
||||
return
|
||||
|
||||
+ self.meta_release = MetaRelease(
|
||||
+ self.options and self.options.devel_release,
|
||||
+ self.options and self.options.use_proposed,
|
||||
+ self.options and self.options.debug)
|
||||
+
|
||||
update_backend = get_backend(self, InstallBackend.ACTION_UPDATE)
|
||||
self._start_pane(update_backend)
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
|
||||
VERSION=18
|
||||
VERSION=19
|
||||
|
||||
. ./config
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue