I encountered a similar situation, hope this help with the issue. I was developing a addon called "maven-repo-helper-extras" who depends on "maven-repo-helper" [1]. The dh sequences in my addon need to be inserted after the sequences introduced by "maven-repo-helper", so I was seeking a way to establish addon relationship inside a Perl script. Niels Thykier finally pointed me to this solution:
```perl use Debian::Debhelper::Sequence::maven_repo_helper; insert_after("mh_install", "mh_shlibdeps"); insert_after("mh_shlibdeps, mh_genlaunchers"); ``` Thus I can use "dh $@ --with maven_repo_helper_extras" in "debian/rules" without applying "maven-repo-helper" as well. Interestingly, it also works even if I apply both addon to dh in no matter what order. Seems "debhelper" already handles duplicated sequence insertion pretty well. [1]: https://tracker.debian.org/pkg/maven-repo-helper
signature.asc
Description: OpenPGP digital signature