mirror of
https://github.com/dynup/kpatch
synced 2024-12-29 00:32:01 +00:00
kpatch-build: add error message if dpkg -x fails to extract source
This commit is contained in:
parent
c3dd8158f7
commit
a2342b42eb
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user