aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorClaudio Matsuoka <claudio@mandriva.com>2006-11-10 11:10:52 +0000
committerClaudio Matsuoka <claudio@mandriva.com>2006-11-10 11:10:52 +0000
commit339b742afa86590c0fdbab2726838f147fd54c92 (patch)
treed5a7f344020d416db2ee947b6050e653539e3c14 /iurt2
parent4ac5efc6d1055aaee671549be22881309f4284d0 (diff)
downloadiurt-339b742afa86590c0fdbab2726838f147fd54c92.tar
iurt-339b742afa86590c0fdbab2726838f147fd54c92.tar.gz
iurt-339b742afa86590c0fdbab2726838f147fd54c92.tar.bz2
iurt-339b742afa86590c0fdbab2726838f147fd54c92.tar.xz
iurt-339b742afa86590c0fdbab2726838f147fd54c92.zip
Cosmetic fixes: indentantion and 80-column wrap
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt222
1 files changed, 14 insertions, 8 deletions
diff --git a/iurt2 b/iurt2
index 538358f..7b97d3c 100755
--- a/iurt2
+++ b/iurt2
@@ -710,7 +710,9 @@ retry:
$run{status}{$srpm} ||= 'install_deps_failure';
next;
}
- # try to workarround the rpm -qa db4 error(2) from dbcursor->c_get: No such file or directory
+
+ # try to workarround the rpm -qa db4 error(2) from dbcursor->c_get:
+ # No such file or directory
# system("sudo chroot $chroot_tmp rm -rf /var/lib/rpm/__db* &> /dev/null");
system("$sudo chroot $chroot_tmp rpm --rebuilddb &> /dev/null");
perform_command("$sudo chroot $chroot_tmp rpm -qa",
@@ -781,15 +783,19 @@ retry:
# FIXME
# The simple algo used here is :
- # try to compile it with unionfs, if it runs out of space, compile it without the next time
+ # try to compile it with unionfs, if it runs out of space,
+ # compile it without the next time
#
- # This could be improved in keeping this srpm name for future version, but if we compile it
- # on a new machine with more ram, or if next version compiles just fine with unionfs, we will
+ # This could be improved in keeping this srpm name for future
+ # version, but if we compile it on a new machine with more ram,
+ # or if next version compiles just fine with unionfs, we will
# loose the unionfs advantage.
#
- # Maybe the right thing to do would be to first try to increase the tmpfs size (more than 50 % of the
- # physical RAM), but this will lead to more swap usage, and slower compilation (and lost of the unionfs
- # plus). Or to keep the faulty package a unionfs exception for some time, to save some more extra builds.
+ # Maybe the right thing to do would be to first try to increase
+ # the tmpfs size (more than 50 % of the physical RAM), but this
+ # will lead to more swap usage, and slower compilation (and lost
+ # of the unionfs plus). Or to keep the faulty package a unionfs
+ # exception for some time, to save some more extra builds.
if (!glob "$chroot_tmp/home/$luser/rpm/RPMS/*/*.rpm") {
if ($run{unionfs_tmp} && $cache->{no_unionfs}{$srpm}) {
@@ -873,7 +879,7 @@ process_queue($config, \%run, \@wrong_rpm);
dump_cache_par(\%run);
-print {$run{LOG}} "ERROR $program_name: RPM with a wrong SRPM name\n" if @wrong_rpm;
+plog("ERROR: RPM with a wrong SRPM name") if @wrong_rpm;
if (@wrong_rpm && open my $file, ">$local_spool/log/wrong_srpm_names.log") {
foreach (@wrong_rpm) {
print $file "$_->[1] -> $_->[0] (", $cache->{rpm_srpm}{$_->[1]},")\n";