aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-03-18 12:17:37 +0000
committerOlivier Blin <oblin@mandriva.com>2007-03-18 12:17:37 +0000
commitc9356871dac04b168f692bd6bef14712cdc88130 (patch)
treea0716d4d7b3c84990ec25999a74cd3454d0abb61
parent962636bd5fd61094dbc843c863341314b71bb028 (diff)
downloadiurt-c9356871dac04b168f692bd6bef14712cdc88130.tar
iurt-c9356871dac04b168f692bd6bef14712cdc88130.tar.gz
iurt-c9356871dac04b168f692bd6bef14712cdc88130.tar.bz2
iurt-c9356871dac04b168f692bd6bef14712cdc88130.tar.xz
iurt-c9356871dac04b168f692bd6bef14712cdc88130.zip
factorize log dir
-rwxr-xr-xiurt27
1 files changed, 4 insertions, 3 deletions
diff --git a/iurt2 b/iurt2
index 8b1cac1..311d9f4 100755
--- a/iurt2
+++ b/iurt2
@@ -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) = @_;