]> git.saurik.com Git - apt.git/commitdiff
debian: Install etc/apt if present (e.g., on Ubuntu)
authorJulian Andres Klode <jak@debian.org>
Thu, 11 Aug 2016 23:36:55 +0000 (01:36 +0200)
committerJulian Andres Klode <jak@debian.org>
Thu, 18 Aug 2016 07:56:37 +0000 (09:56 +0200)
On Ubuntu, cmake installs are vendor-specific apt.conf.d
snippet, causing the build to fail.

debian/rules

index b6dfc96ea0a53950af558bd902fe2b6a89055d83..1ea0e872b011c5d24a9e3522dc050760866bfa58 100755 (executable)
@@ -19,7 +19,8 @@ override_dh_install-indep:
 
 override_dh_install-arch:
        dh_movefiles
-       dh_install --fail-missing
+       if [ -e debian/tmp/etc/apt ]; then dh_install -papt etc/apt/* etc/apt; fi
+       dh_install --list-missing
        install -m 644 debian/apt.conf.autoremove debian/apt/etc/apt/apt.conf.d/01autoremove
        install -m 755 debian/apt.auto-removal.sh debian/apt/etc/kernel/postinst.d/apt-auto-removal