# List of all package maintainers
my $maintainers_bypkg = "/home/gatekpr/etc/maintainers.bypkg";
-my $Log_Style = 'GNU';
-$Log_Style = 'Alpha' if ($style eq 'alpha');
-$Log_Style = 'Distros' if ($style eq 'distros');
+{
+ our $Log_Style = 'GNU';
+ $Log_Style = 'Alpha' if ($style eq 'alpha');
+ $Log_Style = 'Distros' if ($style eq 'distros');
+}
# maintainer e-mail address
my $maintainer_email = "ftp-upload-report\@gnu.org";
die "gatekeeper: test mode: TEST_SYSLOG_SOCKET not valid"
unless $ENV{TEST_SYSLOG_SOCKET} && -S $ENV{TEST_SYSLOG_SOCKET} && -w _;
# override log message tag
- $Log_Style = 'Test';
+ our $Log_Style = 'Test';
} else { # in production mode
# ensure we are using the real gpgv
open my $gpgv,'-|',GPGV_BIN, '--version'
my $priority = shift;
my $message = shift;
+ our $Log_Style;
+
# Remove a trailing newline
$message =~ s/[\r\n]+$//;
# Collapse the message to a single line for syslog