summaryrefslogtreecommitdiff
path: root/archPackagesUpdate
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-06 08:56:20 +0200
committerErich Eckner <git@eckner.net>2017-10-06 08:56:20 +0200
commita6a509291095ed4f73fc838baee0ea4848eb36cf (patch)
tree92bc534a88d6708b1052f7b14222f3eb1913656c /archPackagesUpdate
parent97cc8773be04a9858e39f6244555a1cb2bcd3033 (diff)
downloadarchlinuxewe.git.save-a6a509291095ed4f73fc838baee0ea4848eb36cf.tar.xz
archPackagesUpdate: namcap-Output nach Fehlern durchsuchen
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-xarchPackagesUpdate36
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