diff options
Diffstat (limited to 'lib/Iurt/Config.pm')
-rw-r--r-- | lib/Iurt/Config.pm | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/Iurt/Config.pm b/lib/Iurt/Config.pm index 9e539a8..173ed9e 100644 --- a/lib/Iurt/Config.pm +++ b/lib/Iurt/Config.pm @@ -15,7 +15,6 @@ our @EXPORT = qw( get_date dump_cache dump_cache_par - init_cache get_maint get_date get_prefix @@ -123,30 +122,6 @@ sub get_package_prefix { my ($prefix2) = $rpm =~ /^(\@\d+:)/; "$prefix1$prefix2"; } -=head2 init_cache($run, $config) - -Create a string based on the current date and time -I<%run> is the current running options -I<%config> is the current configuration values -Initialize the cache - -=cut - -sub init_cache { - my ($run, $config, $empty) = @_; - my $program_name = $run->{program_name}; - my $cachefile = "$config->{cache_home}/$program_name.cache"; - my $cache; - if (-f $cachefile) { - plog('DEBUG', "loading cache file $cachefile"); - $cache = eval(cat_($cachefile)) or print "FATAL $program_name: could not load cache $cachefile ($!)\n"; - } else { - $cache = $empty; - } - $run->{cachefile} = $cachefile; - $run->{cache} = $cache; - $cache; -} =head2 dump_cache($run, $config) |