fix missing updates in plugin overview

This commit is contained in:
Sebastian Sdorra
2011-07-29 19:19:25 +02:00
parent d6f717385a
commit 746f781b68

View File

@@ -307,6 +307,12 @@ public class DefaultPluginManager implements PluginManager
Set<PluginInformation> infoSet = new HashSet<PluginInformation>();
for (PluginInformation pi : getPluginCenter().getPlugins())
{
System.out.println(pi.getArtifactId() + ": " + pi.getVersion() + ":"
+ pi.getState());
}
filter(infoSet, getInstalled(), filter);
filter(infoSet, getPluginCenter().getPlugins(), filter);
@@ -612,11 +618,11 @@ public class DefaultPluginManager implements PluginManager
PluginInformation installed)
{
boolean result = false;
PluginVersion version = PluginVersion.createVersion(installed.getVersion());
PluginVersion version = PluginVersion.createVersion(available.getVersion());
if (version != null)
{
result = version.isNewer(available.getVersion());
result = version.isNewer(installed.getVersion());
}
return result;