]> source.dussan.org Git - gitblit.git/commitdiff
Fix PluginManager not properly respecting --noverify
authorJames Moger <james.moger@gitblit.com>
Mon, 27 Oct 2014 14:46:05 +0000 (10:46 -0400)
committerJames Moger <james.moger@gitblit.com>
Mon, 27 Oct 2014 14:46:05 +0000 (10:46 -0400)
releases.moxie
src/main/java/com/gitblit/manager/PluginManager.java

index 446d1619d5c577d25d3f95fdde6d3df4af080047..97d27bd1362b2d106341c46c91084c0fb6162658 100644 (file)
@@ -12,12 +12,14 @@ r26: {
     fixes:
     - Fix French translation (pr-224, ticket-210)
     - Fix raw servlet trashing paths with spaces (ticket-211)
+    - Fix PluginManager not properly respecting --noverify (ticket-209)
     changes: ~
     additions: ~
     dependencyChanges: ~
     contributors:
     - Pierre Templier
     - Barry Roberts 
+    - Jan Å mucr
 }
 
 #
index 2ee48558de010b703e96085617de6d5784e8d9e9..5e25caa1b46095ae8274f7e872bae2575a13b5e6 100644 (file)
@@ -421,6 +421,10 @@ public class PluginManager implements IPluginManager, PluginStateListener {
        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");