瀏覽代碼

Merged #209 "Plugin manager does not completely respect --noverify"

tags/v1.7.0
James Moger 9 年之前
父節點
當前提交
0c083063b5
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. 5
    1
      src/main/java/com/gitblit/manager/PluginManager.java

+ 5
- 1
src/main/java/com/gitblit/manager/PluginManager.java 查看文件

@@ -440,6 +440,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");
@@ -453,7 +457,7 @@ public class PluginManager implements IPluginManager, PluginStateListener {

}

if (sha1File == null && md5File == null && verifyChecksum) {
if (sha1File == null && md5File == null) {
throw new IOException("Missing SHA1 and MD5 checksums for " + url);
}


Loading…
取消
儲存