[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Depends on exact version



Hi Daniel,

On 13.11.2014 11:29, Daniel Lintott wrote:
On 12/11/14 22:40, Andreas Cadhalpun wrote:
What should work better is '>= ${source:Upstream-Version}'.

However, that is not enough to guarantee that the upstream versions
always match. One could then have e.g.:
gns3        = 1.1-1
gns3-gui    = 1.1-1
gns3-server = 1.2-1

If you want to prevent that, you can add appropriate Breaks:
gns3-server:
  Breaks: gns3-gui (< ${source:Upstream-Version})
gns3-gui:
  Breaks: gns3-server (< ${source:Upstream-Version})

I presume this should << since < is deprecated?

Of course. ;)

Would this also need breaks on the greater than side.

No. Assume you have:
gns3        = 1.1-1
gns3-gui    = 1.1-1
gns3-server = 1.1-1

Then you install gns3-gui (= 1.2-1). This breaks gns3-server (<< 1.2) and thus gns3-server gets updated as well.

You might want to add similar Breaks for gns3 as well, so that it also gets updated.

What I'm trying to ensure is that the upstream versions match, the
checks in the gui (that check server version) aren't worried about
Debian revision.

If it's possible to do this, without having to change the breaks
manually each time it would definitely be preferably!

That should work with above dependency relations.

Best regards,
Andreas


Reply to: