James Moger
2014-10-23 c57a28630e1ca45282137419e13ae88a954cc11b
Fix broken implementation of --noverify for installing a plugin from a url
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);
        }