~chihchun/dotdepends/dotdepends-debianrulesclean

« back to all changes in this revision

Viewing changes to usr/bin/dotdepends

  • Committer: Kyle Nitzsche
  • Date: 2012-07-10 18:55:55 UTC
  • Revision ID: kyle.nitzsche@canonical.com-20120710185555-6d6xyvafx08041w9
redundant 'color="red"' styles in nodes in generated pkg-DETAIL.dot files
caused dotdepends-merge on such dot files to incorrected draw some node
borders, colorwise. fixes LP: #1023095

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
            _line = line.lstrip()
313
313
            _pkg = _line.split(" ")[0]
314
314
            if _pkg in adds:
315
 
                line = line.replace("[", '[color="red",')
 
315
                if line.find('color="red"') == -1:
 
316
                    line = line.replace("[", '[color="red",')
316
317
            _f3.append(line)
317
318
 
318
319
        _f = open(f3dot, 'w')