diff options
author | Michael Schroeder <mls@suse.de> | 2011-07-21 20:29:52 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2011-07-21 20:29:52 +0200 |
commit | 9ca9af1a29b0a47c6b5418c5978617441b389303 (patch) | |
tree | 7a080fc3ed10b0b6667930b3dc856a036e143133 /extractbuild | |
parent | c1aeef7d49aa92255cc6194573161c9cf66d8a13 (diff) | |
download | obs-build-9ca9af1a29b0a47c6b5418c5978617441b389303.tar.gz obs-build-9ca9af1a29b0a47c6b5418c5978617441b389303.tar.bz2 obs-build-9ca9af1a29b0a47c6b5418c5978617441b389303.zip |
- allow extraction of empty files
Diffstat (limited to 'extractbuild')
-rwxr-xr-x | extractbuild | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extractbuild b/extractbuild index 5b5da86..f46ffc1 100755 --- a/extractbuild +++ b/extractbuild @@ -50,8 +50,8 @@ while(<S>) { chomp; last unless length $_; my ($file, $filesize, $blksize, @blocks) = split(/ /); - if($#blocks == -1) { - die "invalid input\n"; + if($#blocks == -1 && $filesize) { + die "invalid input '$_'\n"; } $filesize = int($filesize); $blksize = int($blksize); |