set repository id in ArtifactUpdateDatabaseConsumer only when repository id is null

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@747306 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maria Odea B. Ching 2009-02-24 08:35:43 +00:00
parent a0da36af3c
commit a9a04ebb7d
1 changed files with 6 additions and 3 deletions

View File

@ -163,8 +163,11 @@ public class ArtifactUpdateDatabaseConsumer
}
try
{
if( artifact.getModel().getRepositoryId() == null )
{
artifact.getModel().setRepositoryId( this.repository.getId() );
}
// Calculate the hashcodes.
File artifactFile = new File( this.repositoryDir, path );