Searching for packages' description raises an error for packages that cannot be found in any repository (e.g. a deb-file downloaded from somewhere and installed with dpkg). Those packages have to be skipped (if searching for something != "*" in description). Die Ausführung des Kommandos appcenter/packages/query ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py", line 204, in execute func( request ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 176, in _response return function(self, request) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 282, in _response result = _multi_response(self, request) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 384, in _response for res in function(self, iterator, *nones): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/decorators.py", line 266, in _fake_func yield function(self, *args) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/__init__.py", line 236, in packages_query elif key == 'description' and pattern.search(package.candidate.raw_description): AttributeError: 'NoneType' object has no attribute 'raw_description'
- elif key == 'description' and pattern.search(package.candidate.raw_description): + elif key == 'description' and package.candidate and pattern.search(package.candidate.raw_description):
Fixed in univention-management-console-module-appcenter 2.0.94-1.44.201301041515
Extended the fix in univention-management-console-module-appcenter 2.0.95-1.45.201301082009 The module also raised an exception if a package without candidate was to be found in the grid (can happen without network connection)
*** Bug 30097 has been marked as a duplicate of this bug. ***
Shall be released as errata: backport from 3.1-1
Fixed in univention-management-console-module-appcenter 2.0.91-1.52.201301251129 for errata3.1-0
I can reproduce it when I install and reinstall a debian package which is not in the repository. With the new version it works in 3.1-1 and errata 3.1-0. YAML + Changelog: OK
http://errata.univention.de/3.1-errata33.html