debian: conditional python version dependencies

Este commit está contenido en:
Frédéric Pierret (fepitre) 2020-05-21 12:40:28 +02:00
padre 707d4cad8b
commit 74a97b7e6a
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: 484010B5CDC576E2
Se han modificado 2 ficheros con 9 adiciones y 1 borrados

2
debian/control vendido
Ver fichero

@ -87,7 +87,7 @@ Description: Qubes core agent
Package: qubes-core-agent-nautilus Package: qubes-core-agent-nautilus
Architecture: any Architecture: any
Depends: Depends:
python-nautilus, ${pythonver:Depends}-nautilus,
qubes-core-qrexec, qubes-core-qrexec,
Replaces: qubes-core-agent (<< 4.0.0-1) Replaces: qubes-core-agent (<< 4.0.0-1)
Breaks: qubes-core-agent (<< 4.0.0-1) Breaks: qubes-core-agent (<< 4.0.0-1)

8
debian/rules vendido
Ver fichero

@ -38,3 +38,11 @@ override_dh_systemd_start:
override_dh_install: override_dh_install:
dh_install --fail-missing dh_install --fail-missing
override_dh_gencontrol:
ifneq ($(shell grep -o 'stretch\|buster' /etc/debian_version),)
echo "pythonver:Depends=python" >> debian/qubes-core-agent-nautilus.substvars
else
echo "pythonver:Depends=python3" >> debian/qubes-core-agent-nautilus.substvars
endif
dh_gencontrol