aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-12-23 20:34:34 +0000
committerPascal Terjan <pterjan@mageia.org>2012-12-23 20:34:34 +0000
commit7c09cb2879bfe5acac9f377e37fef974d8059232 (patch)
treeff0f77114f59a6199aa77a7734ea07138ceaa2b9
parentade7d52967159069bc0f80ea6c798ce3d1afa082 (diff)
downloadiurt-7c09cb2879bfe5acac9f377e37fef974d8059232.tar
iurt-7c09cb2879bfe5acac9f377e37fef974d8059232.tar.gz
iurt-7c09cb2879bfe5acac9f377e37fef974d8059232.tar.bz2
iurt-7c09cb2879bfe5acac9f377e37fef974d8059232.tar.xz
iurt-7c09cb2879bfe5acac9f377e37fef974d8059232.zip
Add some logging
-rwxr-xr-xiurt8
1 files changed, 5 insertions, 3 deletions
diff --git a/iurt b/iurt
index 877e5bd..214b443 100755
--- a/iurt
+++ b/iurt
@@ -770,6 +770,7 @@ sub rebuild_one {
plog('NOTIFY', "Build package $srpm [$done/$to_compile]");
# When rebuilding all the media, src.rpm can be removed from mirror before we work on them
unless (-f "$dir/$srpm") {
+ plog('WARNING', "$dir/$srpm missing");
$run{status}{$srpm} = 'missing';
return $srpm;
}
@@ -780,12 +781,13 @@ retry:
$urpmi->clean_urpmi_process;
if (!$run{use_old_chroot}) {
+ plog('DEBUG', 'Not reusing old chroot');
$chroot_tmp = create_temp_chroot(\%run, $config,
$chroot_tmp, $chroot_ref) or return $srpm;
}
if (!$urpmi->urpmi_command($chroot_tmp)) {
- plog('DEBUG', "Creating chroot failed.\nCommand was: $chroot_tmp");
+ plog('ERROR', "Creating chroot failed.\nCommand was: $chroot_tmp");
return $srpm;
}
$srpm =~ /(.*)-[^-]+-[^-]+\.src\.rpm$/ or return $srpm;
@@ -801,7 +803,7 @@ retry:
}
#($maintainer, $cc) = ($config->{admin},'');
- plog('DEBUG', "creating user $luser in chroot");
+ plog('DEBUG', "creating user $luser in chroot $chroot_tmp");
add_local_user($chroot_tmp, \%run, $config, $luser, $run{uid}) or return $srpm;
my $old_srpm = $srpm;
@@ -832,7 +834,7 @@ retry:
mkdir $log_dir;
-d $log_dir or die "FATAL: could not create $log_dir (check permissions and group ownerships)";
- plog('INFO', "Install build dependencies");
+ plog('INFO', "Install build dependencies for $srpm");
my $path_srpm = "$chroot_tmp/home/$luser/rpmbuild/SRPMS/";
# on x86_64 the rpm database is getting corrupted and sometimes