| | |
| | | List<PluginRegistration> list = getRegisteredPlugins(); |
| | | Iterator<PluginRegistration> itr = list.iterator(); |
| | | while (itr.hasNext()) { |
| | | if (state != itr.next().getInstallState()) { |
| | | if (state != itr.next().getInstallState(getSystemVersion())) { |
| | | itr.remove(); |
| | | } |
| | | } |
| | |
| | | |
| | | PluginRelease pv; |
| | | if (StringUtils.isEmpty(version)) { |
| | | pv = reg.getCurrentRelease(); |
| | | pv = reg.getCurrentRelease(getSystemVersion()); |
| | | } else { |
| | | pv = reg.getRelease(version); |
| | | } |
| | |
| | | protected File download(String url, boolean verifyChecksum) throws IOException { |
| | | File file = downloadFile(url); |
| | | |
| | | if (!verifyChecksum) { |
| | | return file; |
| | | } |
| | | |
| | | File sha1File = null; |
| | | try { |
| | | sha1File = downloadFile(url + ".sha1"); |