Identify which package has unused local USE descriptions, in case more than
authorZac Medico <zmedico@gentoo.org>
Sun, 18 Jan 2009 23:43:13 +0000 (23:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 18 Jan 2009 23:43:13 +0000 (23:43 -0000)
one package is being scanned. Thanks to Thomas Sachau <tommy@g.o> for reporting.
(trunk r12523)

svn path=/main/branches/2.1.6/; revision=12535

bin/repoman

index 603a4950f288dfdaba20ca06f97bca41d5ce7c87..5e9ee1cc9f69aae6d212d81dd07d396de9b4387a 100755 (executable)
@@ -1586,7 +1586,8 @@ for x in scanlist:
        for myflag in muselist.difference(used_useflags):
                stats["metadata.warning"] += 1
                fails["metadata.warning"].append(
-                       "unused local USE-description: '%s'" % myflag)
+                       "%s/metadata.xml: unused local USE-description: '%s'" % \
+                       (x, myflag))
 
 if options.mode == "manifest":
        sys.exit(dofail)