Package: dh-exec Version: 0.23 Severity: wishlist Sometimes I would like to install files when they are available, and not have to hardcode the precise list of conditions under which they are available or not.
For example, I hade to make the pandoc build-dependency conditional so that it does not apply on armel (it's currently not available there). When pandoc is not available, manual pages were not built and thus the entries in *.install generated failures with dh_install. I fixed those with dh-exec using this syntax: [!armel] usr/share/man/man3/libmaxminddb.3 But if pandoc disappears on another architecture, I will have to update the condition there too. I would much prefer if I could just say "install this file if it's there, otherwise just ignore it". In other places (like udeb module list), we can use a question mark as prefix or suffix to make the line optional. So it would be nice if we could write this: #!/usr/bin/dh-exec ? usr/share/man/man3/libmaxminddb.3 ? usr/share/man/man1/* And if the file cannot be found (or if the wildcard matches nothing), then the line gets dropped before being fed to dh_install. Cheers, -- System Information: Debian Release: stretch/sid APT prefers squeeze-lts APT policy: (500, 'squeeze-lts'), (500, 'oldoldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages dh-exec depends on: ii debhelper 9.20151225 ii libc6 2.21-6 ii libdpkg-perl 1.18.4 ii libpipeline1 1.4.1-2 iu perl 5.22.1-4 dh-exec recommends no packages. dh-exec suggests no packages. -- no debconf information

