It turns out this is a side effect of using --auto-deconfigure in apt:
When modifying the software-center trigger code to error out, this is the result:
# dpkg --auto-deconfigure --unpack /var/cache/apt/archives/app-install-data-partner_12.10.04_all.deb (Reading database ... 367213 files and directories currently installed.) Preparing to replace app-install-data-partner 12.10.04 (using .../app-install-data-partner_12.10.04_all.deb) ... Unpacking replacement app-install-data-partner ... Processing triggers for software-center ... exiting with exit code in software-center trigger dpkg: subprocess installed post-installation script returned error exit status 1
It turns out this is a side effect of using --auto-deconfigure in apt:
When modifying the software-center trigger code to error out, this is the result:
# dpkg --auto-deconfigure --unpack /var/cache/ apt/archives/ app-install- data-partner_ 12.10.04_ all.deb data-partner 12.10.04 (using .../app- install- data-partner_ 12.10.04_ all.deb) ... data-partner ...
(Reading database ... 367213 files and directories currently installed.)
Preparing to replace app-install-
Unpacking replacement app-install-
Processing triggers for software-center ...
exiting with exit code in software-center trigger
dpkg: subprocess installed post-installation script returned error exit status 1