Skip to content

Commit 3a48376

Browse files
committed
Fix incomplete component warning message
The group and package names are swapped.
1 parent af7a7f2 commit 3a48376

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cppdep.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def __init__(self, hpath, cpath, package):
217217
self.name = strip_ext((cpath or hpath)[(len(package.root) + 1):])
218218
if not hpath:
219219
warn('incomplete component: missing header: %s in %s.%s' %
220-
(self.name, package.name, package.group.name))
220+
(self.name, package.group.name, package.name))
221221
self.hpath = hpath
222222
self.cpath = cpath
223223
self.package = package
@@ -681,7 +681,7 @@ def _analyze(suffix, digraph):
681681
for group_name, package_group in self.internal_groups.items():
682682
if len(package_group.packages) > 1:
683683
printer('\n' + '#' * 80)
684-
printer('analyzing dependencies among packages in ' +
684+
printer('analyzing dependencies among packages in '
685685
'the specified package group %s ...' % group_name)
686686
_analyze(group_name,
687687
Graph(package_group.packages.values(),
@@ -695,7 +695,7 @@ def _analyze(suffix, digraph):
695695
assert not package.src_paths
696696
continue
697697
printer('\n' + '#' * 80)
698-
printer('analyzing dependencies among components in ' +
698+
printer('analyzing dependencies among components in '
699699
'the specified package %s.%s ...' %
700700
(group_name, pkg_name))
701701
_analyze('_'.join((group_name, pkg_name)),

0 commit comments

Comments
 (0)