Commit Graph

7 Commits

Author SHA1 Message Date
Michael Biebl
93417d9013 Use more consistent shell script headers
Gbp-Dch: Ignore
2020-01-31 10:46:58 +01:00
Michael Biebl
d11f93c7df Drop pre-stretch migration code 2019-05-08 01:33:37 +02:00
Martin Pitt
5e00954163 libnss-resolve.postinst: Skip dns fallback if resolve is present
Only fall back to "dns" if nss-resolve is not installed (for the architecture
of the calling program). Once it is, we never want to fall back to "dns" as
that breaks enforcing DNSSEC verification and also pointlessly retries NXDOMAIN
failures.

LP: #1624071
2016-10-02 08:35:38 +02:00
Martin Pitt
4dcee43697 Revert "libnss-resolve: Don't duplicate "dns" query"
This reverts commit 792434de9e.

This will break on a multi-arch system where e. g. libnss-resolve:amd64 is
installed, but not :i386, and an i386 package tries to resolve a name.
Thanks to Felipe Sateler for spotting that!

Just keep the regexp cleanup from the above commit.
2016-05-04 21:34:57 -05:00
Martin Pitt
62d8aa9f53 libnss-resolve: Enable systemd-resolved.service on package installation
This package makes little sense without resolved.
2016-05-04 21:11:55 -05:00
Martin Pitt
792434de9e libnss-resolve: Don't duplicate "dns" query
debian/libnss-resolve.postinst: Replace "dns" entry with "resolve", as
libnss-resolve already falls back to dns if resolved is not available. This
avoids querying failing DNS twice. Conversely, replace "resolv" with "dns" in
postrm.

Also fix the unsafe substitution in postrm: We want to match on full words,
thus use \b to match word boundaries. \Q and \E have no effect as none of the
characters in "resolve" are special regex characters.
2016-05-04 20:27:31 -05:00
Felipe Sateler
bd6d88d0eb Add libnss-resolve package
Protect nss removal with a refcount, to not disable nss module until all
instances have been removed.

Closes: #798905
2015-11-11 11:20:27 +01:00