if (p instanceof ToolPackage) {\r
if (((ToolPackage) p).getRevision() >= rev) {\r
// We found one already installed.\r
- return ai;\r
+ return null;\r
}\r
}\r
}\r
if (p instanceof PlatformPackage) {\r
if (v.equals(((PlatformPackage) p).getVersion())) {\r
// We found one already installed.\r
- return ai;\r
+ return null;\r
}\r
}\r
}\r
if (p instanceof PlatformPackage) {\r
if (((PlatformPackage) p).getVersion().isGreaterOrEqualThan(api)) {\r
// We found one already installed.\r
- return ai;\r
+ return null;\r
}\r
}\r
}\r