diff options
author | Florent Villard <warly@mandriva.com> | 2005-12-12 09:46:38 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2005-12-12 09:46:38 +0000 |
commit | c4990e5ab38ab7400aeb5dc77f5dd86786595d3a (patch) | |
tree | e7513b9b5ad86168251604ee417657438123b242 | |
parent | dd6f2018aa2d2f2d7229108f522811f380e1644f (diff) | |
download | iurt-c4990e5ab38ab7400aeb5dc77f5dd86786595d3a.tar iurt-c4990e5ab38ab7400aeb5dc77f5dd86786595d3a.tar.gz iurt-c4990e5ab38ab7400aeb5dc77f5dd86786595d3a.tar.bz2 iurt-c4990e5ab38ab7400aeb5dc77f5dd86786595d3a.tar.xz iurt-c4990e5ab38ab7400aeb5dc77f5dd86786595d3a.zip |
do not open cache file before PID checking
-rwxr-xr-x | iurt2 | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -43,13 +43,6 @@ if (@ARGV[0] eq '--check_queue') { my $distro_version = shift @ARGV; my $distro_tag = $distro_version; $distro_tag =~ s,/,-,g; -my $cache = "$cache_home/iurt.$distro_tag.cache"; -print "Loading cache file $cache\n"; -eval { require $cache }; -$::rpm_srpm ||= {}; -$::failure ||= {}; -$::queue ||= {}; -$::warning ||= {}; my $my_arch = shift @ARGV; my $media = shift @ARGV; my @special_srpm_dir = @ARGV; @@ -101,6 +94,14 @@ open PID, ">$pidfile"; print PID $$; close PID; +my $cache = "$cache_home/iurt.$distro_tag.cache"; +print "Loading cache file $cache\n"; +eval { require $cache }; +$::rpm_srpm ||= {}; +$::failure ||= {}; +$::queue ||= {}; +$::warning ||= {}; + my %big; my %srpm_version; my @wrong_rpm; |