debian: fix version detection for python3?-nautilus dependency

On buster and stretch use python-nautilus, but /etc/debian_version
contains numeric version, not a codename.

Reported by @0spinboson
This commit is contained in:
Marek Marczykowski-Górecki 2020-08-06 05:30:37 +02:00
parent 497dd8d50d
commit 629f836177
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

2
debian/rules vendored
View File

@ -40,7 +40,7 @@ override_dh_install:
dh_install --fail-missing
override_dh_gencontrol:
ifneq ($(shell grep -o 'stretch\|buster' /etc/debian_version),)
ifneq ($(shell grep -o '^9\|^10' /etc/debian_version),)
echo "pythonver:Depends=python" >> debian/qubes-core-agent-nautilus.substvars
else
echo "pythonver:Depends=python3" >> debian/qubes-core-agent-nautilus.substvars