Bug 43909 - AttributeError in ucslint/0014-Depends.py after apt-get autoremove
AttributeError in ucslint/0014-Depends.py after apt-get autoremove
Status: RESOLVED DUPLICATE of bug 37203
Product: UCS
Classification: Unclassified
Component: ucslint
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: Daniel Tröder
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-16 13:34 CET by Daniel Tröder
Modified: 2019-05-21 13:57 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2017-03-16 13:34:53 CET
I did an
# apt-get autoremove
and after that ucslint dies with:

Traceback (most recent call last):
  File "/usr/bin/ucslint", line 322, in <module>
    main()
  File "/usr/bin/ucslint", line 312, in main
    chk.check()
  File "/usr/bin/ucslint", line 108, in check
    obj.check(self.path)
  File "/usr/lib/pymodules/python2.7/univention/ucslint/0014-Depends.py", line 231, in check
    self.check_transitional(path, deps)
  File "/usr/lib/pymodules/python2.7/univention/ucslint/0014-Depends.py", line 267, in check_transitional
    if self.RE_TRANSITIONAL.search(cand.summary):
AttributeError: 'NoneType' object has no attribute 'summary'

Various transitional packages like "apache2.2-common" were removed.
Comment 1 Philipp Hahn univentionstaff 2019-05-21 13:57:21 CEST
Fixed in ucslint_8.0.0-3 through git:release-4.4-0~603 by "Daniel Troeder <troeder@univention.de>"

*** This bug has been marked as a duplicate of bug 37203 ***