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

Re: How to specify a >= X < Y Depends (Was: Packaging GNU Health)



On 2012-11-26 08:24, Michael Tautschnig wrote:
> Hi all,
> 
>> Hi Emilien,
>>
>> On Sat, Nov 24, 2012 at 11:54:59AM +0100, Emilien Klein wrote:
>>> ...
>>> As a general question:
>>> If package A depends on a specific set of releases (like in this case
>>> Tryton 2.4.X), how do we usually handle the case where the "libraries"
>>> are updated before the package depending on the library?
>>> Should I depend on Tryton >= 2.4 < 2.5? I assume that would generate
>>> conflicts once 2.6 is made available, but GNU Health still depends on
>>> an earlier version...
>>
>> I admit a quick search has not uncovered the answer how to express this
>>
>>      Tryton >= 2.4 < 2.5
>>
>> relation correctly.  So I ask on debian-mentors list for help.
>>
> 
> So what's wrong with using Conflicts: Tryton >= 2.5?
> 
> Best,
> Michael
> 

I believe it is quite valid to use:

  tryton (>= 2.4~), tryton (<< 2.5~)

At least lintian4python uses this approach (rather than breaks/conflicts
etc).

~Niels

PS: The "~" is there to handle the case where tryton might be backported.


Reply to: