The source project of this merge request has been removed.
Don't use DPKG_MAINTSCRIPT_ARCH to detect kernel arch.
Apart from being blank, which the previous fix accounted for, the value can also be 'all' and then it still does the wrong thing. So only use the direct approach introduced in the previous fix for bug #975943. This should really fix that bug.