]> git.donarmstrong.com Git - debbugs.git/commitdiff
import all variables except config
authorDon Armstrong <don@donarmstrong.com>
Sat, 16 Mar 2013 17:30:13 +0000 (10:30 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 16 Mar 2013 17:30:13 +0000 (10:30 -0700)
Debbugs/Config.pm

index c7007a76115ba5285b7408609333b8c88873ff02..cb30eda342c09a0704e9edfc5e1d762a5d7c12c8 100644 (file)
@@ -1089,7 +1089,7 @@ sub read_config{
          die "Error in configuration file: $@" if $@;
          # Now what we do is check out the contents of %EXPORT_TAGS to see exactly which variables
          # we want to glob in from the configuration file
-         for my $variable (@{$EXPORT_TAGS{globals}}) {
+         for my $variable (map {$_ =~ /^(?:config|all)$/ ? () : @{$EXPORT_TAGS{$_}}} keys %EXPORT_TAGS) {
               my ($hash_name,$glob_name,$glob_type) = __convert_name($variable);
               my $var_glob = $cpt->varglob($glob_name);
               my $value; #= $cpt->reval("return $variable");