diff options
author | Erich Eckner <git@eckner.net> | 2016-05-30 12:29:32 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-05-30 12:29:32 +0200 |
commit | aee17d9b7e421138d3b6f30ef66cf05f6c8ac5ef (patch) | |
tree | 4f1b7056ab70aa8a4aab869b6672e4e73f19bf69 | |
parent | d7c2ff2c631be541ba89ff4586906b792b89055c (diff) | |
download | archlinuxewe-aee17d9b7e421138d3b6f30ef66cf05f6c8ac5ef.tar.xz |
archPackagesUpdate bricht nun bei fehlschlagendem makepkg.conf-Patch ab
-rwxr-xr-x | archPackagesUpdate | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index 4f099a154..1f998f2ce 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -400,10 +400,18 @@ then # generate current makepkg.conf and makepkg32.conf cd "${tmpDir}" cp /etc/makepkg.conf . - patch -p0 -i makepkgSystem.patch + if ! patch -p0 -i makepkgSystem.patch + then + cleanUp + exit 1 + fi sed 's|^\(BUILDENV=.*\)!sign|\1sign|' -i makepkg.conf cp makepkg{,32}.conf - patch -p0 -i makepkg32.patch + if ! patch -p0 -i makepkg32.patch + then + cleanUp + exit 1 + fi # build packages for ((i=0; i<${#pakete[@]}; i++)) |