|
@@ -18,9 +18,11 @@ fi
|
|
|
|
|
|
exitcode=0
|
|
exitcode=0
|
|
|
|
|
|
-pkg_files=$(sed -r -e "/^${package},(.+)$/!d; s//\1/;" ${pkg_list})
|
|
|
|
|
|
+# Only split on new lines, for filenames-with-spaces
|
|
|
|
+IFS="
|
|
|
|
+"
|
|
|
|
|
|
-for f in ${pkg_files} ; do
|
|
|
|
|
|
+while read f; do
|
|
# Skip firmware files, they could be ELF files for other
|
|
# Skip firmware files, they could be ELF files for other
|
|
# architectures
|
|
# architectures
|
|
if [[ "${f}" =~ ^\./(usr/)?lib/firmware/.* ]]; then
|
|
if [[ "${f}" =~ ^\./(usr/)?lib/firmware/.* ]]; then
|
|
@@ -43,10 +45,10 @@ for f in ${pkg_files} ; do
|
|
continue
|
|
continue
|
|
fi
|
|
fi
|
|
|
|
|
|
- printf 'ERROR: architecture for %s is %s, should be %s\n' \
|
|
|
|
|
|
+ printf 'ERROR: architecture for "%s" is "%s", should be "%s"\n' \
|
|
"${f}" "${arch}" "${arch_name}"
|
|
"${f}" "${arch}" "${arch_name}"
|
|
|
|
|
|
exitcode=1
|
|
exitcode=1
|
|
-done
|
|
|
|
|
|
+done < <( sed -r -e "/^${package},\.(.+)$/!d; s//\1/;" ${pkg_list} )
|
|
|
|
|
|
exit ${exitcode}
|
|
exit ${exitcode}
|