debian: conditional python version dependencies
This commit is contained in:
parent
707d4cad8b
commit
74a97b7e6a
2
debian/control
vendored
2
debian/control
vendored
@ -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)
|
||||
|
8
debian/rules
vendored
8
debian/rules
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user