From 1abdfaaa2fb4907d052323d755eaa9f3e8d98f93 Mon Sep 17 00:00:00 2001 From: Magali Ruffier <mr6@ebi.ac.uk> Date: Fri, 5 Dec 2014 14:38:44 +0000 Subject: [PATCH] remove any accidental spaces at the end of sources rather than dying horribly --- misc-scripts/xref_mapping/xref_config2sql.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/misc-scripts/xref_mapping/xref_config2sql.pl b/misc-scripts/xref_mapping/xref_config2sql.pl index 170e4e9bb3..0e2eee0e64 100755 --- a/misc-scripts/xref_mapping/xref_config2sql.pl +++ b/misc-scripts/xref_mapping/xref_config2sql.pl @@ -171,6 +171,7 @@ foreach my $species_section ( sort( $config->GroupMembers('species') ) ) sort( split( /\n/, $config->val( $species_section, 'source' ) ) ) ) { my $source_section = sprintf( "source %s", $source_name ); + $source_section =~ s/\s$//; if ( !exists( $source_ids{$source_section} ) ) { die( sprintf( "Can not find source section '[%s]'\n" -- GitLab