Bug 31248 - pkcon get-updates should always imply refresh
Summary: pkcon get-updates should always imply refresh
Alias: None
Product: PackageKit
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Richard Hughes
QA Contact:
Depends on:
Reported: 2010-10-30 23:56 UTC by caramba_bk
Modified: 2010-11-15 07:23 UTC (History)
0 users

See Also:
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.

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.