[packagekit] yum backend free filter

Richard Hughes hughsient at gmail.com
Wed Dec 19 14:31:57 PST 2007


Just testing the new free filter:

[hughsie at hughsie-laptop PackageKit]$ sudo /usr/share/PackageKit/helpers/yum/search-name.py "free" pl
allow-interrupt true
no-percentage-updates
status  query
Traceback (most recent call last):
  File "/usr/share/PackageKit/helpers/yum/search-name.py", line 21, in <module>
    backend.search_name(options,searchterms)
  File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 386, in search_name
    self._do_search(searchlist, filters, key)
  File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 306, in _do_search
    if self._do_extra_filtering(pkg,fltlist):
  File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 331, in _do_extra_filtering
    if not self._do_free_filtering(filter, pkg):
  File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 373, in _do_free_filtering
    isFree = self.check_license_field(pkg.license)
  File "/usr/lib/python2.5/site-packages/packagekit/backend.py", line 221, in check_license_field
    if license in PackageKitEnum.fsf_free_licenses:
AttributeError: class PackageKitEnum has no attribute 'fsf_free_licenses'

Boom. Additionally, is there anyway we can put all tracebacks in the error signal? Thanks guys.

Richard.





More information about the PackageKit mailing list