It turns out my problem was that the preinst
and postinst
scripts in the subproject weren't being run. I don't know if this is how debian packages are supposed to run or if it's just a bug in the way theos deals with subprojects, but I was able to resolve it by simply moving those commands to the preinst
and postinst
scripts for the main project.
It's not ideal since, logically, they belong with the subproject, but it works.