[packagekit] yum backend free filter

Robin Norwood rnorwood at redhat.com
Thu Dec 20 15:15:48 PST 2007


Richard Hughes <hughsient at gmail.com> writes:

> On Thu, 2007-12-20 at 14:30 -0500, Robin Norwood wrote:
>> Ok, fixed, sorry for the breakage.
>
> Found a problem - the logic is wrong:

Fixed.  Note that powertop and powerman both still show up on the wrong
side of the fence, but that's because their license field says "GPL",
which isn't a valid license tag according to fedora standards.  We might
could special case it, but would probably be better to just have the
packages fixed.

What do you think about adding a little 'free/not free' symbol or
somesuch on the package details pane of pk-application, along with the
license field?


[rnorwood at solitude python]$ sudo /usr/share/PackageKit/helpers/yum/search-name.py "~free" power
Password:
allow-interrupt true
no-percentage-updates
status  query
package available       powertop;1.9-1.fc9;i386;development     Power consumption monitor
package available       powerman;1.0.25-2.fc7;i386;development  PowerMan - Power to the Cluster

-RN

> [hughsie at hughsie-laptop PackageKit]$ sudo /usr/share/PackageKit/helpers/yum/search-name.py "free" power
> allow-interrupt true
> no-percentage-updates
> status  query
>
> [hughsie at hughsie-laptop PackageKit]$ sudo /usr/share/PackageKit/helpers/yum/search-name.py "~free" power
> allow-interrupt true
> no-percentage-updates
> status  query
> package installed       gnome-power-manager;2.21.1-1.95.20071116svn.fc7.hughsie;i386;installed  GNOME Power Manager
> package installed       powertop;1.8-1.fc8;i386;installed       Power consumption monitor
> package available       kadu-powerkadu;0.5.0-4.fc8;i386;fedora  Powerkadu module for Kadu
> package available       kpowersave-debuginfo;0.7.3-0.2svn20070828.fc8;i386;fedora-debuginfo     Debug information for package kpowersave
> package available       gnome-power-manager-debuginfo;2.20.0-6.fc8;i386;fedora-debuginfo        Debug information for package gnome-power-manager
> package available       powertop-debuginfo;1.8-1.fc8;i386;fedora-debuginfo      Debug information for package powertop
> package available       kpowersave-debuginfo;0.7.3-1.fc8;i386;updates-debuginfo Debug information for package kpowersave
> package available       powermanga;0.90-1;i386;fedora   Arcade 2D shoot-them-up game
> package available       powerman;1.0.25-2.fc7;i386;fedora       PowerMan - Power to the Cluster
> package available       powerman-debuginfo;1.0.25-2.fc7;i386;fedora-debuginfo   Debug information for package powerman
> package available       kpowersave;0.7.3-0.2svn20070828.fc8;i386;fedora KPowersave is the KDE frontend for powermanagement
> package available       powertop;1.8-1.fc8;i386;fedora  Power consumption monitor
> package available       kpowersave;0.7.3-1.fc8;i386;updates     KPowersave is the KDE frontend for powermanagement
> package available       powermanga-debuginfo;0.90-1;i386;fedora-debuginfo       Debug information for package powermanga
> package available       gnome-power-manager;2.20.0-6.fc8;i386;fedora    GNOME Power Manager
>
> Should be an easy fix :-)
>
> Richard.
>
>
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
>

-- 
Robin Norwood
Red Hat, Inc.

"The Sage does nothing, yet nothing remains undone."
-Lao Tzu, Te Tao Ching



More information about the PackageKit mailing list