Merge lp:~ilidrissi.amine/update-manager/interactive-check into lp:update-manager

Proposed by Mohamed Amine Ilidrissi
Status: Rejected
Rejected by: Michael Terry
Proposed branch: lp:~ilidrissi.amine/update-manager/interactive-check
Merge into: lp:update-manager
Diff against target: 81 lines (+19/-3)
4 files modified
UpdateManager/UpdateManager.py (+9/-2)
data/update-manager.desktop.in (+1/-1)
debian/changelog (+6/-0)
update-manager (+3/-0)
To merge this branch: bzr merge lp:~ilidrissi.amine/update-manager/interactive-check
Reviewer Review Type Date Requested Status
Michael Terry Disapprove
Michael Vogt Pending
Review via email: mp+31141@code.launchpad.net

Description of the change

This branch introduces automatic checking for updates when launched with the --automatic-check option, which is enabled by default on the .desktop file, this according to https://wiki.ubuntu.com/SoftwareUpdateHandling#Launching.

To post a comment you must log in.
1877. By Mohamed Amine Ilidrissi

merge with trunk

1878. By Mohamed Amine IL Idrissi <devildante@devildante-laptop>

modified debian/changelog.

Revision history for this message
Michael Terry (mterry) wrote :

This got fixed a different way recently, but with the same effect. Software Updater now checks for updates on startup by default. Thanks for the branch, though it didn't end up getting used!

I'll just mark that this branch is rejected, since it is now redundant.

review: Disapprove

Unmerged revisions

1878. By Mohamed Amine IL Idrissi <devildante@devildante-laptop>

modified debian/changelog.

1877. By Mohamed Amine Ilidrissi

merge with trunk

1876. By Mohamed Amine Ilidrissi

Finished implementing interactive check.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'UpdateManager/UpdateManager.py'
2--- UpdateManager/UpdateManager.py 2010-07-28 13:57:54 +0000
3+++ UpdateManager/UpdateManager.py 2010-08-03 09:07:43 +0000
4@@ -110,6 +110,7 @@
5 class UpdateManager(SimpleGtkbuilderApp):
6
7 def __init__(self, datadir, options):
8+ self.options = options
9 self.setupDbus()
10 gtk.window_set_default_icon_name("update-manager")
11 self.datadir = datadir
12@@ -211,11 +212,16 @@
13 self.window_main.set_focus_on_map(False)
14 if self.progress._window:
15 self.progress._window.set_focus_on_map(False)
16- # show the main window
17- self.window_main.show()
18 # get the install backend
19 self.install_backend = backend.get_backend(self.window_main)
20 self.install_backend.connect("action-done", self._on_backend_done)
21+ self.finished_checking = False
22+ if options.automatic_check:
23+ self.install_backend.update()
24+ while not self.finished_checking: # FIXME: more appropriate way?
25+ gtk.main_iteration()
26+ # show the main window
27+ self.window_main.show()
28 # it can only the iconified *after* it is shown (even if the docs
29 # claim otherwise)
30 if options.no_focus_on_map:
31@@ -651,6 +657,7 @@
32 self.install_backend.commit(pkgs_install, pkgs_upgrade, close_on_done)
33
34 def _on_backend_done(self, backend, action):
35+ self.finished_checking = True
36 # check if there is a new reboot required notification
37 if (action == INSTALL and
38 os.path.exists(REBOOT_REQUIRED_FILE)):
39
40=== modified file 'data/update-manager.desktop.in'
41--- data/update-manager.desktop.in 2008-03-10 10:05:05 +0000
42+++ data/update-manager.desktop.in 2010-08-03 09:07:43 +0000
43@@ -2,7 +2,7 @@
44 _Name=Update Manager
45 _GenericName=Software Updates
46 _Comment=Show and install available updates
47-Exec=/usr/bin/update-manager
48+Exec=/usr/bin/update-manager --automatic-check
49 Icon=update-manager
50 Terminal=false
51 Type=Application
52
53=== modified file 'debian/changelog'
54--- debian/changelog 2010-07-28 13:57:54 +0000
55+++ debian/changelog 2010-08-03 09:07:43 +0000
56@@ -3,6 +3,12 @@
57 * more python-apt 0.8 porting
58 * less updates to the progressbar
59
60+ [ Mohamed Amine IL Idrissi ]
61+ * update-manager now automatically checks for updates when
62+ manually launched (according to
63+ https://wiki.ubuntu.com/SoftwareUpdateHandling#Launching)
64+ LP: #289404
65+
66 -- Michael Vogt <michael.vogt@ubuntu.com> Wed, 28 Jul 2010 15:18:20 +0200
67
68 update-manager (1:0.142.4) maverick; urgency=low
69
70=== modified file 'update-manager'
71--- update-manager 2010-04-14 12:34:25 +0000
72+++ update-manager 2010-08-03 09:07:43 +0000
73@@ -78,6 +78,9 @@
74 # TRANSLATORS: aufs is the name of the filesystem
75 # that is used to create the overlay
76 help=_("Test upgrade with a sandbox aufs overlay"))
77+ parser.add_option("--automatic-check", action="store_true",
78+ dest="automatic_check", default=False,
79+ help=_("Automatically check for updates"))
80
81 (options, args) = parser.parse_args()
82

Subscribers

People subscribed via source and target branches

to status/vote changes: