parse version only one time

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1384564 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-09-13 22:11:18 +00:00
parent bdb81fef28
commit f6300f9941
1 changed files with 2 additions and 2 deletions

View File

@ -791,6 +791,8 @@ public class DefaultBrowseService
{
List<String> selectedRepos = getSelectedRepos( repositoryId );
boolean snapshot = VersionUtil.isSnapshot( version );
try
{
for ( String repoId : selectedRepos )
@ -798,8 +800,6 @@ public class DefaultBrowseService
ManagedRepository managedRepository = managedRepositoryAdmin.getManagedRepository( repoId );
boolean snapshot = VersionUtil.isSnapshot( version );
if ( ( snapshot && !managedRepository.isSnapshots() ) || ( !snapshot
&& managedRepository.isSnapshots() ) )
{