mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 05:25:44 +01:00
fix missing updates in plugin overview
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user