my $c_dir_Stage; # CONF_DIR_Staging
my $c_dir_Public; # CONF_DIR_Public
my $c_dir_Archive; # CONF_DIR_Archive
- my $c_Serials_FileName; # CONF_FILE_Serials
# Read the configuration file.
unless ($want_help || $want_version) {
$c_Package_Config =File::Spec->catdir($base, 'packages');
$c_Package_State = File::Spec->catdir($base, 'state');
- $c_Serials_FileName = 'serial.txt';
$c_dir_Inbox = File::Spec->catdir($base, 'inbox');
$c_dir_Scratch = File::Spec->catdir($base, 'scratch');
$c_Package_Config = $ZoneConfig{pkgconfdir};
$c_Package_State = $ZoneConfig{pkgstatedir};
- $c_Serials_FileName = $ZoneConfig{serials};
$c_dir_Inbox = $ZoneConfig{inboxdir};
$c_dir_Scratch = $ZoneConfig{scratchdir};
foreach my $item ([tag => $c_Zone_Tag], [logtag => $c_Log_Tag],
[pkgconfdir => $c_Package_Config],
[pkgstatedir => $c_Package_State],
- [serials => $c_Serials_FileName],
[inboxdir => $c_dir_Inbox],
[scratchdir => $c_dir_Scratch],
[stagedir => $c_dir_Stage],
constant->import(CONF_DIR_Public => $c_dir_Public);
constant->import(CONF_DIR_Archive => $c_dir_Archive);
- constant->import(CONF_FILE_Serials => $c_Serials_FileName);
-
exit 0 if $CheckConfigurationParse; # stop here if checking parser
}
my $full_filename = shift;
my $new_epoch = shift;
- return unless defined CONF_FILE_Serials;
- my $serials_path = File::Spec->catfile(CONF_DIR_State, CONF_FILE_Serials);
+ my $serials_path = File::Spec->catfile(CONF_DIR_State, 'serials');
# Now we need to flock the our 'serials' file;
# verify the epoch value there/update it, etc.
# logtag defaults to capitalized zone name
pkgconfdir = /srv/gatetest/config-bar
pkgstatedir = /srv/gatetest/state-bar
-serials = serials-bar.txt
inboxdir = /srv/gatetest/inbox-bar
scratchdir = /srv/gatetest/scratch-bar
stagedir = /srv/gatetest/stage-bar
{tag = bar[\r\n]+logtag = Bar[\r\n]+}
{pkgconfdir = /srv/gatetest/config-bar}
{pkgstatedir = /srv/gatetest/state-bar}
- {serials = serials-bar[.]txt}
{inboxdir = /srv/gatetest/inbox-bar}
{scratchdir = /srv/gatetest/scratch-bar}
{stagedir = /srv/gatetest/stage-bar}