aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-06-05 21:43:53 +0000
committerOlivier Lamy <olamy@apache.org>2012-06-05 21:43:53 +0000
commit0af5a819d92981b42c6baba9324173c931bcf02d (patch)
tree1211d46120db1f11e4cce248dc2dd3d3af4d6c7f /archiva-modules/archiva-base
parenta1230dc9e73484aeaf6138f2682c295c694927fc (diff)
downloadarchiva-0af5a819d92981b42c6baba9324173c931bcf02d.tar.gz
archiva-0af5a819d92981b42c6baba9324173c931bcf02d.zip
when deleting an artifact md5 and sha1 must be deleted too
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1346611 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base')
-rw-r--r--archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java
index aabda49cf..0c626436f 100644
--- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java
+++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java
@@ -86,6 +86,20 @@ public class ManagedDefaultRepositoryContent
{
FileUtils.deleteQuietly( filePath );
}
+
+ File filePathmd5 = new File( getRepoRoot(), path + ".md5" );
+
+ if ( filePathmd5.exists() )
+ {
+ FileUtils.deleteQuietly( filePathmd5 );
+ }
+
+ File filePathsha1 = new File( getRepoRoot(), path + ".sha1" );
+
+ if ( filePathsha1.exists() )
+ {
+ FileUtils.deleteQuietly( filePathsha1 );
+ }
}
public String getId()