diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-03-18 12:17:37 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-03-18 12:17:37 +0000 |
commit | c9356871dac04b168f692bd6bef14712cdc88130 (patch) | |
tree | a0716d4d7b3c84990ec25999a74cd3454d0abb61 | |
parent | 962636bd5fd61094dbc843c863341314b71bb028 (diff) | |
download | iurt-c9356871dac04b168f692bd6bef14712cdc88130.tar iurt-c9356871dac04b168f692bd6bef14712cdc88130.tar.gz iurt-c9356871dac04b168f692bd6bef14712cdc88130.tar.bz2 iurt-c9356871dac04b168f692bd6bef14712cdc88130.tar.xz iurt-c9356871dac04b168f692bd6bef14712cdc88130.zip |
factorize log dir
-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) = @_; |