[Bug 488150] New: get_files returns empty list in PackageKit's python bindings
https://bugzilla.novell.com/show_bug.cgi?id=488150 Summary: get_files returns empty list in PackageKit's python bindings Classification: openSUSE Product: openSUSE 11.2 Version: Alpha 0 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mvyskocil@novell.com QAContact: qa@suse.de Found By: --- The get_files() from PackageKitclient returns an empty list. The following code snippet don't work $ cat <<EOF > pkgkit.py #!/usr/bin/python from packagekit.client import PackageKitClient, FILTER_INSTALLED from subprocess import Popen, PIPE pkc = PackageKitClient() pkg = pkc.get_packages('installed')[0] print "get_files('%s') --> %s" % (pkg, pkc.get_files(pkg), ) cmd1 = "rpm -ql %s" % (pkg.name) cmd2 = "head" p1 = Popen(cmd1.split(' '), stdout=PIPE) p2 = Popen(cmd2.split(' '), stdin=p1.stdout, stdout=PIPE) res = p2.communicate()[0] print "%s | %s\n%s" % (cmd1, cmd2, res) EOF $ python pkgkit.py get_files('ConsoleKit-0.2.10-63.11.x86_64') --> [] rpm -ql ConsoleKit | head /etc/ConsoleKit /etc/ConsoleKit/run-session.d /etc/ConsoleKit/seats.d /etc/ConsoleKit/seats.d/00-primary.seat /etc/dbus-1/system.d/ConsoleKit.conf as pkcon works, so the bug is somewhere in Python binding, not in PackageKit/libzypp integration. $ pkcon get-files ConsoleKit Package files /etc/ConsoleKit /etc/ConsoleKit/run-session.d /etc/ConsoleKit/seats.d /etc/ConsoleKit/seats.d/00-primary.seat /etc/dbus-1/system.d/ConsoleKit.conf .. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=488150 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |prusnak@novell.com AssignedTo|bnc-team-screening@forge.pr |bnc-team-gnome@forge.provo. |ovo.novell.com |novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=488150 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mboman@novell.com, | |vuntz@novell.com Found By|--- |Development -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com