From 1d478fa43750e213f90e3d97a0ba67d84d9cee79 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Mon, 25 Jul 2011 21:38:01 -0400 Subject: [PATCH] fix spurious extra attributes warning --- ivy/IvyActions.scala | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ivy/IvyActions.scala b/ivy/IvyActions.scala index 215959116..387fdd60b 100644 --- a/ivy/IvyActions.scala +++ b/ivy/IvyActions.scala @@ -145,9 +145,12 @@ object IvyActions def processUnresolved(err: ResolveException, log: Logger) { val withExtra = err.failed.filter(!_.extraAttributes.isEmpty) - log.warn("\n\tNote: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.") - withExtra foreach { id => log.warn("\t\t" + id) } - log.warn("") + if(!withExtra.isEmpty) + { + log.warn("\n\tNote: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.") + withExtra foreach { id => log.warn("\t\t" + id) } + log.warn("") + } } def groupedConflicts[T](moduleFilter: ModuleFilter, grouping: ModuleID => T)(report: UpdateReport): Map[T, Set[String]] = report.configurations.flatMap { confReport =>