diff options
author | Florent Villard <warly@mandriva.com> | 2006-05-15 08:29:30 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-05-15 08:29:30 +0000 |
commit | e1d3fa1bf79ab796ead584e3cdc360ed9a456377 (patch) | |
tree | 7a5840d674c0490726e09e1429e375bb63d80153 /iurt2 | |
parent | 0e788a7b17282b7539d652542c87afe06d48efd9 (diff) | |
download | iurt-e1d3fa1bf79ab796ead584e3cdc360ed9a456377.tar iurt-e1d3fa1bf79ab796ead584e3cdc360ed9a456377.tar.gz iurt-e1d3fa1bf79ab796ead584e3cdc360ed9a456377.tar.bz2 iurt-e1d3fa1bf79ab796ead584e3cdc360ed9a456377.tar.xz iurt-e1d3fa1bf79ab796ead584e3cdc360ed9a456377.zip |
do not lock when rebuilding chroot
Diffstat (limited to 'iurt2')
-rwxr-xr-x | iurt2 | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -24,9 +24,8 @@ # TODO # # - use a cache (rpmctl cache for example) to find maintainer -# - add a --user option to build into the chroot with an alternate user -# - add a --stop bi option to only do the bi step of rpm compilation and stop afterwards # - add icecream compilation support +# - add a --set option to compile a set of packages # use strict; use Hdlist; @@ -258,7 +257,7 @@ if ($run{distro} ne 'cooker') { # cache file name is needed early to remove the manual lock file if the lock mechanism does not work my $cachefile = "$config->{cache_home}/iurt.$run{distro_tag}.$run{my_arch}.$run{media}.cache"; $run{cachefile} = $cachefile; -if (!$run{debug} && $run{media} || $run{chroot}) { +if (!$run{debug} && $run{media}) { $run{pidfile_home} = "$config->{cache_home}/"; $run{pidfile} = "iurt.$run{distro_tag}.$run{my_arch}.$run{media}"; check_pid(\%run) @@ -339,7 +338,7 @@ if (!-d $local_spool) { if ($config->{rsync_to} && !$run{no_rsync}) { # remove some old and very big log files not to saturate the server system(qq|find $local_spool/log/ -name "*.log" \\( -size +$config->{log_size_limit} -or -mtime +$config->{log_size_date} \\) -exec rm -f {} \\;|); - system("rsync --delete -alHPe 'ssh -c arcfour' $local_spool/log/ $config->{rsync_to}/$run{distro_tag}/$run{my_arch}/log/"); + system("rsync --delete -alHPe 'ssh -xc arcfour' $local_spool/log/ $config->{rsync_to}/$run{distro_tag}/$run{my_arch}/log/"); } print {$run{LOG}} "iurt: try to dump rpm macros to $chroot/home/builder/.rpmmacros\n" if $run{verbose} > 3; @@ -662,7 +661,7 @@ if (open my $file, ">$local_spool/log/status.$run{media}.log") { if ($config->{rsync_to} && !$run{no_rsync}) { # remove some old and very big log files not to saturate the server system(qq|find $local_spool/log/ -name "*.log" \\( -size +$config->{log_size_limit} -or -mtime +$config->{log_size_date} \\) -exec rm -f {} \\;|); - system("rsync --delete -alHPe 'ssh -c arcfour' $local_spool/log/ $config->{rsync_to}/$run{distro_tag}/$run{my_arch}/log/"); + system("rsync --delete -alHPe 'ssh -xc arcfour' $local_spool/log/ $config->{rsync_to}/$run{distro_tag}/$run{my_arch}/log/"); } # one last try to clean |