diff options
-rwxr-xr-x | iurt2 | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -810,9 +810,10 @@ retry: } (my $log_dirname = $srpm) =~ s/.*:(.*)\.src.rpm/$1/; + $log_dir = "$local_spool/log/$log_dirname/"; # only create the log dir for the new srpm - mkdir "$local_spool/log/$log_dirname"; + mkdir $log_dir; plog('INFO', "Install build dependencies"); my $path_srpm = "$chroot_tmp/home/$luser/rpm/SRPMS/"; @@ -838,7 +839,7 @@ retry: hash => "rpm_qa_$srpm", timeout => 60, debug_mail => $run{debug}, - log => "$local_spool/log/$log_dirname/"); # or next; As this failed quite often, do not stop + log => $log_dir); # or next; As this failed quite often, do not stop plog('NOTIFY', "Building $srpm"); my $command = "rpm --rebuild $run{with_flags} /home/$luser/rpm/SRPMS/$srpm"; if ($run{stop}) { @@ -859,7 +860,7 @@ retry: srpm => $srpm, debug_mail => $run{debug}, cc => $cc, - log => "$local_spool/log/$log_dirname/", + log => $log_dir, error_regexp => 'rror.*ailed|Bad exit status|RPM build error', callback => sub { my ($opt, $output) = @_; |