kpatch-build: add error message if dpkg -x fails to extract source

This commit is contained in:
Jessica Yu 2014-06-11 23:03:25 -07:00
parent c3dd8158f7
commit a2342b42eb

View File

@ -251,7 +251,7 @@ else
# Download source deb pkg
wget "$url/${pkgname}.deb" || die "wget: Could not fetch $url/${pkgname}.deb"
# Unpack
dpkg -x ${pkgname}.deb $TEMPDIR
dpkg -x ${pkgname}.deb $TEMPDIR || die "dpkg: Could not extract ${pkgname}.deb"
# extract and move to SRCDIR
tar xvjf usr/src/linux-source-${ARCHVERSION%%-*}.tar.bz2
rm -rf "$CACHEDIR"