File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ def get_all_names_and_targets(ds):
165165 targets = set ()
166166 for d in ds :
167167 for fi in os .listdir (d ):
168+ fi = '/' .join ([d , fi ])
168169 try :
169170 tree = etree .parse (fi )
170171 ruleset_name = tree .xpath ("/ruleset/@name" )[0 ]
@@ -195,9 +196,10 @@ def nomes_all(where=sys.argv[1:]):
195196failure = 0
196197seen_file = False
197198all_names , all_targets = get_all_names_and_targets (dupdir )
199+ print dupdir
200+ print len (all_names ), len (all_targets )
198201
199202for fi in nomes_all ():
200- # print fi
201203 try :
202204 tree = etree .parse (fi )
203205 if fi [- 4 :] != ".xml" :
@@ -230,7 +232,7 @@ def nomes_all(where=sys.argv[1:]):
230232 if target in all_targets and not any (ign .search (target ) for ign in ignoredups ):
231233 # suppress warning about duplicate targets if an --ignoredups
232234 # pattern matches target
233- sys .stdout .write ("warning: duplicate target: %s\n " % target )
235+ sys .stdout .write ("warning: %s has duplicate target: %s\n " % ( fi , target ) )
234236 all_targets .add (target )
235237
236238if not seen_file :
You can’t perform that action at this time.
0 commit comments