consider a EAP channel as active even if its current version is greater than the one we have now (IDEA-96581)

This commit is contained in:
Dmitry Jemerov
2012-12-04 19:26:17 +01:00
parent e98da1e89f
commit f2bca41213
@@ -88,7 +88,8 @@ public class UpdateStrategy {
List<UpdateChannel> channels = product.getChannels();
List<UpdateChannel> result = new ArrayList<UpdateChannel>();
for (UpdateChannel channel : channels) {
if (channel.getMajorVersion() == myMajorVersion && channel.getStatus().compareTo(myChannelStatus) >= 0) {
if ((channel.getMajorVersion() == myMajorVersion && channel.getStatus().compareTo(myChannelStatus) >= 0) ||
(channel.getMajorVersion() > myMajorVersion && channel.getStatus() == ChannelStatus.EAP && myChannelStatus == ChannelStatus.EAP)) {
result.add(channel);
}
}