aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2005-12-12 09:46:38 +0000
committerFlorent Villard <warly@mandriva.com>2005-12-12 09:46:38 +0000
commitc4990e5ab38ab7400aeb5dc77f5dd86786595d3a (patch)
treee7513b9b5ad86168251604ee417657438123b242 /iurt2
parentdd6f2018aa2d2f2d7229108f522811f380e1644f (diff)
downloadiurt-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
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt215
1 files changed, 8 insertions, 7 deletions
diff --git a/iurt2 b/iurt2
index 17ea7e2..231ca4e 100755
--- a/iurt2
+++ b/iurt2
@@ -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;