don't destroy patch on failure to unpack/prepare
This commit is contained in:
parent
dc90ce1d1b
commit
662ed43b24
1 changed files with 1 additions and 1 deletions
2
apatch
2
apatch
|
@ -11,7 +11,7 @@ startdir="$PWD"
|
||||||
[ -f APKBUILD ] || ( echo "please run this in a package directory"; exit 1 )
|
[ -f APKBUILD ] || ( echo "please run this in a package directory"; exit 1 )
|
||||||
[ "$1" != "" ] || ( echo "usage: apatch <patch name>"; exit 1 )
|
[ "$1" != "" ] || ( echo "usage: apatch <patch name>"; exit 1 )
|
||||||
|
|
||||||
abuild clean fetch unpack prepare
|
abuild clean fetch unpack prepare || exit 1
|
||||||
|
|
||||||
# obtain builddir
|
# obtain builddir
|
||||||
. APKBUILD
|
. APKBUILD
|
||||||
|
|
Loading…
Reference in a new issue