.txt files report pkg names wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dotdepends |
Confirmed
|
High
|
Unassigned |
Bug Description
when you run dotdepends in analyze mode against a package like this:
$ dotdepends apkg
it generates a directory names apkg that contains two text files:
* apkg-depends-
* apkg-depends-
These two files list packages that would be installed if you installed 'apkg' in two cases:
* install-recommends OFF
* install-recommends ON
The pkg names listed in the files are not the actual package names but are the mangled versions of them required to use them as dot node names. (In the actual .dot file, the mangled name is corrected via a label="therealname" style.
The pkg names should be the real package names, not the mangled ones so that we can grep the txt files for pkgs.
This could be fixed with a dictionary (in Dot.py > Dot class) where the key is the mangled name and the value is the real name. When writing the text files, use the dict to get the right value to write.