summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-08-09 11:51:58 +0200
committerDavid Tardon <dtardon@redhat.com>2013-08-09 11:57:15 +0200
commit5621aa6b5cc5151eebc8b7cc591ebd25cd23307f (patch)
tree2c65a46cec36670283bb2eeab3fb7085d4028f3e /bin
parentbcbdf6763944dcc53c2667bf829a005ff0b9223a (diff)
fdo#50436 fail if unpacking of tarball failed
Change-Id: Iacad0141a72a12e67e5cc33b2e2196b74a240e81
Diffstat (limited to 'bin')
-rw-r--r--bin/unpack-sources5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/unpack-sources b/bin/unpack-sources
index 4b0f9beb0c8d..a6a14abe31df 100644
--- a/bin/unpack-sources
+++ b/bin/unpack-sources
@@ -75,7 +75,10 @@ for tarball in $tarballs ; do
echo "Unpacking $tarname..."
echo tar -xf "$tarball" -C "$lo_src_dir"
- tar -xf "$tarball" -C "$lo_src_dir"
+ if ! tar -xf "$tarball" -C "$lo_src_dir"; then
+ echo "Error: could not unpack $tarname"
+ exit 1
+ fi
# create symlinks for module directories; ignore git-hooks directory
for dir in `find "$lo_src_dir/$tarname" -mindepth 1 -maxdepth 1 -type d -path $lo_src_dir/$tarname/git-hooks -o -printf "$tarname/%f\n"` ; do