Merge lp:~richard-fairthorne/appcenter/apt-update into lp:~elementary-apps/appcenter/appcenter

Proposed by Richard Fairthorne
Status: Merged
Approved by: Danielle Foré
Approved revision: 137
Merged at revision: 137
Proposed branch: lp:~richard-fairthorne/appcenter/apt-update
Merge into: lp:~elementary-apps/appcenter/appcenter
Diff against target: 11 lines (+1/-0)
1 file modified
src/Core/Client.vala (+1/-0)
To merge this branch: bzr merge lp:~richard-fairthorne/appcenter/apt-update
Reviewer Review Type Date Requested Status
Adam Bieńkowski (community) Approve
Review via email: mp+286220@code.launchpad.net

Commit message

Updates the apt-cache when checking for updates

Description of the change

Updates the apt-cache when checking for updates

To post a comment you must log in.
Revision history for this message
Richard Fairthorne (richard-fairthorne) wrote :

Address https://bugs.launchpad.net/appcenter/+bug/1513139 - update the available package cache on "Installed" tab.

Revision history for this message
Adam Bieńkowski (donadigo) wrote :

Looks right to me

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Core/Client.vala'
2--- src/Core/Client.vala 2016-01-30 16:44:48 +0000
3+++ src/Core/Client.vala 2016-02-16 18:39:56 +0000
4@@ -202,6 +202,7 @@
5 Pk.Task update_task = request_task (false);
6 Pk.Task details_task = request_task (false);
7 try {
8+ yield update_task.refresh_cache_async (false, interface_cancellable, (t, p) => { });
9 Pk.Results result = yield update_task.get_updates_async (0, interface_cancellable, (t, p) => { });
10 string[] packages_array = {};
11 result.get_package_array ().foreach ((pk_package) => {

Subscribers

People subscribed via source and target branches