From 74a97b7e6a59e2ddae9f3dc9d95ca73eab27f001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Thu, 21 May 2020 12:40:28 +0200 Subject: [PATCH] debian: conditional python version dependencies --- debian/control | 2 +- debian/rules | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index e06f33b..15ab263 100644 --- a/debian/control +++ b/debian/control @@ -87,7 +87,7 @@ Description: Qubes core agent Package: qubes-core-agent-nautilus Architecture: any Depends: - python-nautilus, + ${pythonver:Depends}-nautilus, qubes-core-qrexec, Replaces: qubes-core-agent (<< 4.0.0-1) Breaks: qubes-core-agent (<< 4.0.0-1) diff --git a/debian/rules b/debian/rules index 9a5bcdf..9ea1c59 100755 --- a/debian/rules +++ b/debian/rules @@ -38,3 +38,11 @@ override_dh_systemd_start: override_dh_install: 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