Robotics StackExchange | Archived questions

Adding postinst to debian release

Hi there, I have a question similar to this: https://answers.ros.org/question/191779/add-postinstall-rule-for-deb-package-creation/

In short, I have a debian package that already has been released but I'm trying to apply a post installation step to it and it is not performed. My package's upstream repo and release repo are in the links below, respectively: https://github.com/shadow-robot/sr_hand_detector/blob/melodic-devel/scripts/postinst https://github.com/shadow-robot/sr_hand_detector-release

As you can see in the first link, I have a postinst file in the scripts folder. At the release time, I have just had it there, which as I understand now, would not have inserted the script into my debian release. Therefore, just today I made additional changes, i.e. I manually commited and pushed the postinst file to the debian/melodic/srhanddetector branch of the release repo, as seen here: https://github.com/shadow-robot/sr_hand_detector-release/tree/debian/melodic/sr_hand_detector/debian

However, I can see that the script is still not applied when I do sudo apt install step. My question therefore is - what additional steps do I have to perform to cleanly make the postinstall step work for my debian release. Do I just need to create another version release and make a PR to the rosdistro, do I only need to wait until next ros sync, or both, or some other step that I am missing here?

Thanks in advance for any advice!

Asked by mike_k on 2020-12-07 11:53:18 UTC

Comments

Answers