[packagekit] yum backend free filter

Robin Norwood rnorwood at redhat.com
Thu Dec 20 11:30:09 PST 2007


Robin Norwood <rnorwood at redhat.com> writes:

> Richard Hughes <hughsient at gmail.com> writes:
>
>> Just testing the new free filter:
>
> Fascinating.  I seem to have lost the list of licenses instead of
> committing it.  Willfix.

Ok, fixed, sorry for the breakage.

-RN

>> [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.
>>
>>
>> _______________________________________________
>> 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