Fix failure to extract kernel patch when srcdest is set in Arch (#218)
This commit is contained in:
parent
273ab6d286
commit
aef234558d
@ -349,8 +349,12 @@ _tkg_srcprep() {
|
|||||||
if [ "$_sub" != "0" ] && [[ "$_sub" != rc* ]]; then
|
if [ "$_sub" != "0" ] && [[ "$_sub" != rc* ]]; then
|
||||||
msg2 "Patching from $_basekernel to $pkgver"
|
msg2 "Patching from $_basekernel to $pkgver"
|
||||||
if [ ! -e "$srcdir/patch-${pkgver}" ]; then
|
if [ ! -e "$srcdir/patch-${pkgver}" ]; then
|
||||||
|
if [ -e "$srcdir/patch-${pkgver}.xz" ]; then
|
||||||
|
xz -dk "$(readlink -f "$srcdir/patch-${pkgver}.xz")" --stdout > "$srcdir/patch-${pkgver}"
|
||||||
|
else
|
||||||
( cd "$_where" && xz -dk patch-${pkgver}.xz && mv "$_where"/patch-${pkgver} "$srcdir"/ )
|
( cd "$_where" && xz -dk patch-${pkgver}.xz && mv "$_where"/patch-${pkgver} "$srcdir"/ )
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
tkgpatch="$srcdir/patch-${pkgver}" && _tkg_patcher
|
tkgpatch="$srcdir/patch-${pkgver}" && _tkg_patcher
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user