incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1156505 - /sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/RegisteredResourceImpl.java
Date Thu, 11 Aug 2011 06:29:45 GMT
Author: cziegeler
Date: Thu Aug 11 06:29:44 2011
New Revision: 1156505

URL: http://svn.apache.org/viewvc?rev=1156505&view=rev
Log:
SLING-2178 : Installed resource should be listed before not installed one

Modified:
    sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/RegisteredResourceImpl.java

Modified: sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/RegisteredResourceImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/RegisteredResourceImpl.java?rev=1156505&r1=1156504&r2=1156505&view=diff
==============================================================================
--- sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/RegisteredResourceImpl.java
(original)
+++ sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/RegisteredResourceImpl.java
Thu Aug 11 06:29:44 2011
@@ -408,6 +408,11 @@ public class RegisteredResourceImpl
             }
         }
         if ( result == 0 ) {
+            if ( a.getState() == ResourceState.INSTALLED ) {
+                return -1;
+            } else if ( b.getState() == ResourceState.INSTALLED ) {
+                return 1;
+            }
             result = a.getURL().compareTo(b.getURL());
         }
         return result;



Mime
View raw message