aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-12-11 09:03:35 +0000
committerThierry Vignaud <tv@mageia.org>2012-12-11 09:03:35 +0000
commit255b3461ad633b53c6c42b5403ac5db56e3f11bc (patch)
treeb943d6ce5173dc9869c246f8101dce0c559ed1fa
parentc894f7802e82644053bf301ad6d24aae3e046cb7 (diff)
downloadiurt-255b3461ad633b53c6c42b5403ac5db56e3f11bc.tar
iurt-255b3461ad633b53c6c42b5403ac5db56e3f11bc.tar.gz
iurt-255b3461ad633b53c6c42b5403ac5db56e3f11bc.tar.bz2
iurt-255b3461ad633b53c6c42b5403ac5db56e3f11bc.tar.xz
iurt-255b3461ad633b53c6c42b5403ac5db56e3f11bc.zip
(empty_status) simplify, make it cleaer and kill a perl_checker warning
-rwxr-xr-xiurt2
1 files changed, 1 insertions, 1 deletions
diff --git a/iurt b/iurt
index 2c30f56..11f7bf6 100755
--- a/iurt
+++ b/iurt
@@ -1407,7 +1407,7 @@ sub status_file {
sub empty_status {
my ($local_spool, $run) = @_;
my $status_file = status_file($local_spool, $run);
- open my $file, ">$status_file";
+ truncate($status_file, 0);
}
sub write_status {