felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r555976 - /felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalRepositoryImpl.java
Date Fri, 13 Jul 2007 13:05:34 GMT
Author: rickhall
Date: Fri Jul 13 06:05:33 2007
New Revision: 555976

URL: http://svn.apache.org/viewvc?view=rev&rev=555976
Log:
Fixed two filter syntax errors when using inclusive version ranges. (FELIX-327)

Modified:
    felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalRepositoryImpl.java

Modified: felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalRepositoryImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalRepositoryImpl.java?view=diff&rev=555976&r1=555975&r2=555976
==============================================================================
--- felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalRepositoryImpl.java
(original)
+++ felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalRepositoryImpl.java
Fri Jul 13 06:05:33 2007
@@ -253,13 +253,13 @@
                     
                     String low = imports[impIdx].isLowInclusive()
                                 ? "(version>=" + imports[impIdx].getVersion() + ")"
-                                : "(!(version<=" + imports[impIdx].getVersion() + ")";
+                                : "(!(version<=" + imports[impIdx].getVersion() + "))";
 
                     if (imports[impIdx].getVersionHigh() != null)
                     {
                         String high = imports[impIdx].isHighInclusive()
                             ? "(version<=" + imports[impIdx].getVersionHigh() + ")"
-                            : "(!(version>=" + imports[impIdx].getVersionHigh() + ")";
+                            : "(!(version>=" + imports[impIdx].getVersionHigh() + "))";
                         req.setFilter("(&(package="
                             + imports[impIdx].getName() + ")"
                             + low + high + ")");
@@ -329,4 +329,4 @@
             }
         }
     }
-}
\ No newline at end of file
+}



Mime
View raw message