On 2020-08-07 14:08 +0200, Harald Dunkel wrote: > On 8/5/20 6:29 PM, Sven Joachim wrote: >> I am not sure I understand what you actually want to do, though. >> > > I am maintaining a set of meta packages, referencing the packages > to install on my hosts. To avoid having separate meta packages for > each new Debian version I have to use conditional dependencies, like > > Package: sample-setup > Architecture: all > Depends: ${misc:Depends} > , sample-setup-chroot > : > , nvme-cli | base-files ( << 9 ) > : > > Meaning nvme-cli has to be installed for Debian 9 or newer. > > > This package > > Package: sample-lxc > Architecture: all > Depends: ${misc:Depends} > , cgmanager | systemd > , debootstrap > , lxc > , lxc-templates | lxc ( << 3 ) > : > > did not work as expected (IMHO), apparently because (1:2 << 3) = false.
That's what I meant to tell you in my first reply, sorry if it was unclear. I think changing the dependency to "lxc-templates | lxc ( << 1:3 )" is what you want here. See deb-version(7) for how dpkg (and apt) compares versions. Cheers, Sven