ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1372620 - /ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/p2/P2Descriptor.java
Date Mon, 13 Aug 2012 21:11:22 GMT
Author: hibou
Date: Mon Aug 13 21:11:22 2012
New Revision: 1372620

URL: http://svn.apache.org/viewvc?rev=1372620&view=rev
Log:
log only it is actually a duplicate

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/p2/P2Descriptor.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/p2/P2Descriptor.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/p2/P2Descriptor.java?rev=1372620&r1=1372619&r2=1372620&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/p2/P2Descriptor.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/p2/P2Descriptor.java Mon Aug 13 21:11:22
2012
@@ -67,7 +67,7 @@ public class P2Descriptor extends RepoDe
                 return;
             }
             URI old = (URI) byVersion.put(bundleInfo.getVersionTarget().toString(), sourceUri);
-            if (old != null) {
+            if (old != null && !old.equals(sourceUri)) {
                 Message.verbose("Duplicate source for the bundle "
                         + bundleInfo.getSymbolicNameTarget() + "@" + bundleInfo.getVersionTarget()
                         + " : " + sourceUri + " is replacing " + old);



Mime
View raw message