summaryrefslogtreecommitdiff
path: root/extractbuild
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2011-07-21 20:29:52 +0200
committerMichael Schroeder <mls@suse.de>2011-07-21 20:29:52 +0200
commit9ca9af1a29b0a47c6b5418c5978617441b389303 (patch)
tree7a080fc3ed10b0b6667930b3dc856a036e143133 /extractbuild
parentc1aeef7d49aa92255cc6194573161c9cf66d8a13 (diff)
downloadobs-build-9ca9af1a29b0a47c6b5418c5978617441b389303.tar.gz
obs-build-9ca9af1a29b0a47c6b5418c5978617441b389303.tar.bz2
obs-build-9ca9af1a29b0a47c6b5418c5978617441b389303.zip
- allow extraction of empty files
Diffstat (limited to 'extractbuild')
-rwxr-xr-xextractbuild4
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);