[Bug 984865] New: PK/zypp filtering issue
http://bugzilla.opensuse.org/show_bug.cgi?id=984865 Bug ID: 984865 Summary: PK/zypp filtering issue Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@forge.provo.novell.com Reporter: dimstar@opensuse.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- While working with jhbuild, an issue in PackageKit/zypp backend becomes apparent. jhbuild creates query in the form (translated to pkcon for easier understanding): pkcon what-provides 'pkgconfig(gtk+-3.0)' --filter 'arch;newest' This is supposed to find THE ONE package that matches 'primary arch' of my setup AND 'newest package possible' Both filters do not work in openSUSE and it results ALL packages providing the capability... https://github.com/hughsie/PackageKit/pull/132 addresses the 'arch' filter issue (the filter means PRIMARY arch, not compatible archs) The 'newest' filter still needs tpo be implemented for 'what-provides' -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=984865
http://bugzilla.opensuse.org/show_bug.cgi?id=984865#c4
--- Comment #4 from Dominique Leuenberger
A choice, following the user settings and not just looking the the version number, could be:
const PoolItem & upcand( sel->updateCandidateObj() ); if ( upcand ) return( upcand == solv_r ); // is newest because it's the UPDATE candidate const PoolItem & inst( sel->installedObj() ); if ( inst ) return( inst == solv_r ); // is newest because it's the up-to-date installed one return( sel->candidateObj() == solv_r ); // is newest because it's the one that fits best
This seems pretty much to be the 'right thing((tm)' in my view... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=984865
http://bugzilla.opensuse.org/show_bug.cgi?id=984865#c5
Adrien Plazas
From the documentation, 'newest' can return multiple results: https://www.freedesktop.org/software/PackageKit/gtk-doc/introduction-ideas-f...
From what I understand from the example, it should return the newest installed if any AND the newest not installed and available if any. Also and IIUC the documentation, if a package 'some-name;some-version;some-arch' is installed, the same package should not be listed as available; hence if the newest available package is installed, only the installed version of the package should be listed.
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=984865
Hans Petter Jansson
http://bugzilla.opensuse.org/show_bug.cgi?id=984865
Dominique Leuenberger
participants (1)
-
bugzilla_noreply@novell.com