aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2009-05-08 23:12:23 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2009-05-08 23:12:23 +0000
commit64a50218fbc2b411d8bf2b25dcf61bf05129c871 (patch)
tree21ea42d54272b5bb05ca8c43e08d85a3d289de25
parentd36a385e755b9112107e8ed727e4b4260411f3cb (diff)
downloadspec-helper-64a50218fbc2b411d8bf2b25dcf61bf05129c871.tar
spec-helper-64a50218fbc2b411d8bf2b25dcf61bf05129c871.tar.gz
spec-helper-64a50218fbc2b411d8bf2b25dcf61bf05129c871.tar.bz2
spec-helper-64a50218fbc2b411d8bf2b25dcf61bf05129c871.tar.xz
spec-helper-64a50218fbc2b411d8bf2b25dcf61bf05129c871.zip
oopd
-rwxr-xr-xcompress_files8
1 files changed, 4 insertions, 4 deletions
diff --git a/compress_files b/compress_files
index a3fb215..ef56a43 100755
--- a/compress_files
+++ b/compress_files
@@ -158,13 +158,13 @@ sub xargs {
if (length($arg) + 1 + $static_length > $command_max) {
error(qq(This command is greater than the maximum command size allowed by the kernel, and cannot be split up further. What on earth are you doing? "@_ $_"));
}
- $length += length($_) + 1;
+ $length += length($arg) + 1;
if ($length < $command_max) {
- push @collect, $_;
+ push @collect, $arg;
} else {
system(@_, @collect) if $#collect > -1;
- @collect = $_;
- $length = $static_length + length($_) + 1;
+ @collect = $arg;
+ $length = $static_length + length($arg) + 1;
}
}
system(@_, @collect) if $#collect > -1;