fails when there are no families

Bug #1018582 reported by Kyle Nitzsche
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dotdepends
Fix Released
Critical
Kyle Nitzsche

Bug Description

dotdepends removes the root pkg node family from the dictionary of families, if there are any families. This is so that the root node is not summarized into a package family in order to make the generated graph clearer, that is, the root pkg node and its dependencies should always be shown.

However, when there are zero families found, dotdepends crashes at the point in code where the root node's family, if any, is removed from the dictionary of families:

$ dotdepends libasound2
libasound2/libasound2-DETAIL.png
Traceback (most recent call last):
  File "/usr/bin/dotdepends", line 267, in <module>
    dot2.summarize(replacement(pkg), out_file=path.join(opt.output_dir, pkg + "-SUMMARY"))
  File "/usr/lib/python2.7/dist-packages/Dotdepends/Dot.py", line 265, in summarize
    fams = self.remove_root_family(fams_with_root, root)
  File "/usr/lib/python2.7/dist-packages/Dotdepends/Dot.py", line 194, in remove_root_family
    del fams[root]
KeyError: 'libasound2'

Related branches

Changed in dotdepends:
status: Confirmed → In Progress
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Fixed with 0.3.9

Changed in dotdepends:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.