diff options
author | Brett Porter <brett@apache.org> | 2008-07-18 08:16:24 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2008-07-18 08:16:24 +0000 |
commit | caab5531c0491bf07d6354c932d86af844c4c5c0 (patch) | |
tree | 9d4a3fc3d0f21c9c6705f1d98df9a3e4f211af58 /archiva-modules/archiva-base/archiva-policies | |
parent | 28e545b65a3079ca6b09d691c2ebb0d64d23254f (diff) | |
download | archiva-caab5531c0491bf07d6354c932d86af844c4c5c0.tar.gz archiva-caab5531c0491bf07d6354c932d86af844c4c5c0.zip |
[MRM-876] don't grab the remote file if it exists in the managed repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@677852 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-policies')
-rw-r--r-- | archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/ChecksumPolicy.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/ChecksumPolicy.java b/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/ChecksumPolicy.java index 76b5db51d..fe89822fe 100644 --- a/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/ChecksumPolicy.java +++ b/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/ChecksumPolicy.java @@ -80,6 +80,11 @@ public class ChecksumPolicy public void applyPolicy( String policySetting, Properties request, File localFile ) throws PolicyViolationException, PolicyConfigurationException { + if ( "resource".equals( request.getProperty( "filetype" ) ) ) + { + return; + } + if ( !options.contains( policySetting ) ) { // Not a valid code. |