diff options
author | Erich Eckner <git@eckner.net> | 2017-10-06 08:56:20 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-10-06 08:56:20 +0200 |
commit | a6a509291095ed4f73fc838baee0ea4848eb36cf (patch) | |
tree | 92bc534a88d6708b1052f7b14222f3eb1913656c /archPackagesUpdate | |
parent | 97cc8773be04a9858e39f6244555a1cb2bcd3033 (diff) | |
download | archlinuxewe.git.save-a6a509291095ed4f73fc838baee0ea4848eb36cf.tar.xz |
archPackagesUpdate: namcap-Output nach Fehlern durchsuchen
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-x | archPackagesUpdate | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index 8f0912be..f48a51a0 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -485,17 +485,31 @@ then printf 'unbekannte Architektur "%s"\n' "${arch}" err[${i}]=128 fi - if [ ${err[${i}]} -eq 0 ] - then - for teil in "${paket_teile[@]}"; do - namcap "${tmpDir}/${paket}/${teil}-${vers}-${arch}.pkg.tar.xz" - err[${i}]=$? - if [ -n "${log}" ] - then - namcap "${tmpDir}/${paket}/${teil}-${vers}-${arch}.pkg.tar.xz" > "${tmpDir}/${paket}/${teil}-namcap-${arch}.log" - fi - done - fi + for teil in "${paket_teile[@]}"; do + if [ ${err[${i}]} -ne 0 ]; then + break + fi + namcap "${tmpDir}/${paket}/${teil}-${vers}-${arch}.pkg.tar.xz" > \ + "${tmpDir}/namcap" + err[${i}]=$? + if [ -n "${log}" ] + then + cat "${tmpDir}/namcap" > \ + "${tmpDir}/${paket}/${teil}-namcap-${arch}.log" + fi + if [ ${err[${i}]} -ne 0 ]; then + break + fi + if grep "$( + printf '%s\\|' \ + "E: ELF file (.*) found in an ['\"]any['\"] package" \ + "W: No ELF files and not an ['\"]any['\"] package" | \ + sed 's@\\|$@@' + )" "${tmpDir}/namcap"; then + err[${i}]=64 + fi + done + rm -f "${tmpDir}/namcap" if ${abortOnMakepkgError} && [ ${err[${i}]} -ne 0 ] then cleanUp |