mirror of https://github.com/apache/archiva.git
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:
parent
bdb81fef28
commit
f6300f9941
|
@ -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() ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue