On Tue, Mar 29, 2016 at 05:13:51PM +0200, Santiago Ruano Rincón wrote:
> #!/usr/bin/make -f
>
> -DEBIAN_VERSION ?= $(shell LANG=C dpkg -l base-files | awk '($$1=="ii"){print
> $$3}' | cut -d. -f1)
> +DEBIAN_VERSION ?= $(shell LANG=C dpkg -l base-files | awk '($$1=="ii"){print
> $$3}' | cut -d. -f1 | cut -d+ -f1)
Hello tocayo.
This is not ok (neither the original or the patched version). The fact
that base-files numbering happens to match Debian stable releases
until now is not enough to use its version number to guess Debian
version number.
Please do it right and use /etc/debian_version or /etc/os-release
instead.
Thanks.