The source project of this merge request has been removed.
Fix bug 975943
The fix for bug #971748 caused bug #975943 because DPKG_MAINTSCRIPT_ARCH isn't always set, resulting in an empty $arch variable.
I added a check whether DPKG_MAINTSCRIPT_ARCH is set and if so, use that. If not, use an alternative method with file and awk. It could possibly replace the DPKG_MAINTSCRIPT_ARCH method, but I'll leave that up to the maintainer.
Also fixes raspi-team/image-specs#37 (closed)