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

Re: debian package creation: how to specify a version range in Depends: field



On 2009-07-31 16:34 +0200, Peter Van Biesen wrote:

> Hi,
>
> I'm building a package that depends on another package but this package needs to be a in a specific version range.
>
> My package "A" depends on package "B" but the version of B needs to be 10.* .
>
> I tried 
> Depends: B(>>10.0), B(<<11.0)
> Depends: B(>>10.0,<<11.0)
> Depends: B(=10.*)
>
> Both just installed the most recent version of B.

The first line is the correct one in principle, but I think you need to
put spaces between package name and opening parentheses as well as
between the comparison operator and the version number, i.e.

Depends: B (>> 10.0), B (<< 11.0)

should do the trick.

Sven


Reply to: