Bug 31248

Summary: pkcon get-updates should always imply refresh
Product: PackageKit Reporter: caramba_bk
Component: GeneralAssignee: Richard Hughes <richard>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description caramba_bk 2010-10-30 23:56:05 UTC
Running pkcon get-updates apparently looks only at the cached local list. So it might report no available updates, but if you then refresh the list and run get-updates again, it will present available updates.
This seems counter intuitive, wouldn't 99 percent of users running pkcon get-updates actually want to poll if there are new packages in the repository? Therefore the suggestion is that get-updates should imply a refresh. The current behaviour could still be obtained by adding a --cache option.
Comment 1 Richard Hughes 2010-10-31 01:51:18 UTC
We're actually discussing this on the mailing list at the moment, by chance. See http://lists.freedesktop.org/archives/packagekit/2010-October/006022.html for a possible solution. If you have a few minutes, please join the mailing list and share your views. Thanks.

Richard.
Comment 2 Richard Hughes 2010-11-15 07:23:12 UTC
pkcon now has a --cache-age parameter.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.