James Moger
2014-10-23 0c083063b5dbf949533a986262368b796c867910
Merged #209 "Plugin manager does not completely respect --noverify"
1 files modified
6 ■■■■ changed files
src/main/java/com/gitblit/manager/PluginManager.java 6 ●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/manager/PluginManager.java
@@ -440,6 +440,10 @@
    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");
@@ -453,7 +457,7 @@
        }
        if (sha1File == null && md5File == null && verifyChecksum) {
        if (sha1File == null && md5File == null) {
            throw new IOException("Missing SHA1 and MD5 checksums for " + url);
        }