Bug 25818 - newest filter no longer works for installed/available package pairs
Summary: newest filter no longer works for installed/available package pairs
Status: RESOLVED NOTABUG
Alias: None
Product: PackageKit
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-29 03:22 UTC by Julian Sikorski
Modified: 2018-08-21 15:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Old behaviour (83.67 KB, image/png)
2009-12-29 03:22 UTC, Julian Sikorski
Details
New behaviour (83.98 KB, image/png)
2009-12-29 03:23 UTC, Julian Sikorski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Sikorski 2009-12-29 03:22:48 UTC
Created attachment 32343 [details]
Old behaviour

The fix for gnome bug #601246 seems to have broken the newest filter. With PackageKit 0.5.4-0.1.20091029git.fc12, the situation was as follows:

$ LANG=C pkcon search name openal-soft-devel
Searching by name             [=========================]         
Starting                      [=========================]         
Querying                      [=========================]         
Installed   	openal-soft-devel-1.10.622-3.3793919892e6d61e5fec3abeaaeebc3f2332be13git.fc12.x86_64	Development files for openal-soft

Now (PackageKit 0.5.5-1.fc12), while available i686 version is shown, it is also accompanied by older releases of x86_64 version:

$ LANG=C pkcon search name openal-soft-devel
Searching by name             [=========================]         
Starting                      [=========================]         
Querying                      [=========================]         
Installed   	openal-soft-devel-1.10.622-3.3793919892e6d61e5fec3abeaaeebc3f2332be13git.fc12.x86_64	Development files for openal-soft
Available   	openal-soft-devel-1.9.563-1.d6e439244ae00a1750f0dc8b249f47efb4967a23git.fc12.i686	Development files for openal-soft
Available   	openal-soft-devel-1.9.563-1.d6e439244ae00a1750f0dc8b249f47efb4967a23git.fc12.x86_64	Development files for openal-soft
Available   	openal-soft-devel-1.10.622-3.3793919892e6d61e5fec3abeaaeebc3f2332be13git.fc12.i686	Development files for openal-soft

This is probably right, since every single package available in repositories is listed. On the other hand, the newest filter does not do its job right. It takes away the older versions of packages of the same installed/available state, but on the other hand if an older version of an installed package is still available in the repositories, it will still get listed:

$ LANG=C pkcon search name --filter newest openal-soft-devel
Searching by name             [=========================]         
Starting                      [=========================]         
Querying                      [=========================]         
Available   	openal-soft-devel-1.10.622-3.3793919892e6d61e5fec3abeaaeebc3f2332be13git.fc12.i686	Development files for openal-soft
Installed   	openal-soft-devel-1.10.622-3.3793919892e6d61e5fec3abeaaeebc3f2332be13git.fc12.x86_64	Development files for openal-soft
Available   	openal-soft-devel-1.9.563-1.d6e439244ae00a1750f0dc8b249f47efb4967a23git.fc12.x86_64	Development files for openal-soft

Same thing happens in gnome-packagekit (see attachments).
Comment 1 Julian Sikorski 2009-12-29 03:23:19 UTC
Created attachment 32344 [details]
New behaviour
Comment 2 Julian Sikorski 2010-08-05 13:16:05 UTC
Are there any plans for this issue? It still happens in Fedora 14 prerelease:

[julas@laughlin ~]$ LANG=C pkcon search name gnome-chemistry-utils
Searching by name             [=========================]         
Starting                      [=========================]         
Querying                      [=========================]         
Installed   	gnome-chemistry-utils-0.12.3-1.fc14.i686	A set of chemical utilities
Available   	gnome-chemistry-utils-0.12.2-4.fc14.i686	A set of chemical utilities
Available   	gnome-chemistry-utils-gnumeric-0.12.2-4.fc14.i686	Gnome Chemistry Utils plugin for Gnumeric
Available   	gnome-chemistry-utils-gnumeric-0.12.3-1.fc14.i686	Gnome Chemistry Utils plugin for Gnumeric
Available   	gnome-chemistry-utils-mozplugin-0.12.2-4.fc14.i686	Gnome Chemistry Utils plugin for Mozilla
Available   	gnome-chemistry-utils-mozplugin-0.12.3-1.fc14.i686	Gnome Chemistry Utils plugin for Mozilla
[julas@laughlin ~]$ LANG=C pkcon --filter newest search name gnome-chemistry-utils
Searching by name             [=========================]         
Starting                      [=========================]         
Querying                      [=========================]         
Available   	gnome-chemistry-utils-0.12.2-4.fc14.i686	A set of chemical utilities
Installed   	gnome-chemistry-utils-0.12.3-1.fc14.i686	A set of chemical utilities
Available   	gnome-chemistry-utils-gnumeric-0.12.3-1.fc14.i686	Gnome Chemistry Utils plugin for Gnumeric
Available   	gnome-chemistry-utils-mozplugin-0.12.3-1.fc14.i686	Gnome Chemistry Utils plugin for Mozilla
[julas@laughlin ~]$ rpm -q PackageKit
PackageKit-0.6.6-3.fc14.i686
[julas@laughlin ~]$ 

As you can see above, gnome-chemistry-utils-0.12.2-4.fc14.i686 is listed even though a newer gnome-chemistry-utils-0.12.3-1.fc14.i686 is installed.
Comment 3 Richard Hughes 2018-08-21 15:52:29 UTC
We moved the upstream bugtracker to GitHub a long time ago. If this issue still affects you please re-create the issue here: https://github.com/hughsie/PackageKit/issues
 
Sorry for the impersonal message, and fingers crossed your issue no longer happens. Thanks.


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.