This problem has some history: see Bug #21256 and Bug #33011 In my case the algorithm/regexp fails on the following code: pkg_postinst() { standard-impl-postinst sbcl if use callbacks; then mv /usr/lib/sbcl/sbcl.core /usr/lib/sbcl/sbcl-nocallbacks.core || die pushd ${WORKDIR}/sbcl-af sbcl --core /usr/lib/sbcl/sbcl-nocallbacks.core \ --load 'system' \ --eval '(sb-ext:save-lisp-and-die "/usr/lib/sbcl/sbcl.core")' || die ... I don't think you can reliably detect these kinds of things without writing your own Bash script parser in Python. Certainly it will be tough to get right with a regexp. Workaround is to edit /usr/bin/repoman and disable/remove nesteddie test.
Downgraded to a warning.
Fixed on or before 2.0.51.22-r1
Looking through the batch of bugs, I'm not sure that some of these are actually fixed in stable. Others, the requirements have possibly changed after the initial fix was committed. If you think this bug has been closed incorrectly, please reopen or ask that it be reopened.