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