Skip to content

Commit

Permalink
Use registry for metadata/production/taxonomy dbs.
Browse files Browse the repository at this point in the history
In order to force the use of the most up-to-date centrally-managed
databases (ensembl_metadata, ensembl-production, ncbi_taxonomy),
don't allow those to be overridden by a server_uri parameter.
  • Loading branch information
James Allen committed Jun 7, 2021
1 parent f3c452c commit 90ae5cf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/Bio/EnsEMBL/DataCheck/DbCheck.pm
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,15 @@ sub get_dba {

$self->load_registry();

# If we have a server_uri and registry, we want to overwrite anything
# loaded in the registry with the server_uri.
# If we have a server_uri and registry, we want to overwrite
# anything loaded in the registry with the server_uri,
# unless it's a metadata/production/taxonomy db, which we
# always want to come from a registry file.
if (
defined $self->registry_file &&
defined $self->server_uri &&
scalar( @{$self->server_uri} )
scalar( @{$self->server_uri} ) &&
$group !~ /^(metadata|production|taxonomy)$/
) {
SERVER_URI: foreach my $server_uri ( @{$self->server_uri} ) {
my $uri = parse_uri($server_uri);
Expand Down

0 comments on commit 90ae5cf

Please sign in to comment.