From c439d4197e95032389e0d289e5b48f214ad34bda Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 19 Aug 2011 16:22:26 +0200 Subject: [PATCH] [entropy] improve metadata QA hook output --- conf/intel/entropy/packages/packages.server.qa.exec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/intel/entropy/packages/packages.server.qa.exec b/conf/intel/entropy/packages/packages.server.qa.exec index 1a955f7..334413f 100755 --- a/conf/intel/entropy/packages/packages.server.qa.exec +++ b/conf/intel/entropy/packages/packages.server.qa.exec @@ -63,12 +63,12 @@ def check_unwanted_deps(): "dev-lang/gnat-gcc"] func_rc = 0 - pkg_deps = set([entropy.dep.dep_getkey(x) for x in pkg_deps.split()]) + pkg_deps = dict((entropy.dep.dep_getkey(x), x) for x in pkg_deps.split()) for unwanted_dep in unwanted_deps: if unwanted_dep in pkg_deps: sys.stderr.write("\nATTENTION ATTENTION ATTENTION\n") sys.stderr.write("%s contains forbidden dependency against %s\n" % ( - pkg_atom, unwanted_dep)) + pkg_atom, pkg_deps[unwanted_dep])) sys.stderr.write("ATTENTION ATTENTION ATTENTION\n\n") func_rc = 2 @@ -76,7 +76,7 @@ def check_unwanted_deps(): if warning_dep in pkg_deps: sys.stderr.write("\nATTENTION ATTENTION ATTENTION\n") sys.stderr.write("%s contains a weirdo dependency against %s\n" % ( - pkg_atom, warning_dep)) + pkg_atom, pkg_deps[warning_dep])) sys.stderr.write("ATTENTION ATTENTION ATTENTION\n\n") func_rc = 1