[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



Hi,

FYI , I have a 10.0 and a 11.5 version of B in my repository.

I added a Conflicts line with B (>= 11.0), the error:

The following packages have unmet dependencies:
  A: Depends: B (>= 10.0) but it is not going to be installed

I tried the Depends: B (>= 10.0), B (<< 11.0), the error:

The following packages have unmet dependencies:
  A: Depends: B (< 11.0) but 11.50.4-0 is to be installed

does anybody have another idea ?

Thanks !

Peter.


On Friday 31 July 2009 21:34:25 Sven Joachim wrote:
> 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

>What about

>Depends: B(>=10.0)
>Conflicts: B(>=11.0)

>?

>Cheers,

>Tiago.


> 
> 


-- 
Peter Van Biesen
Sysadmin VAPH

tel: +32 (0) 2 225 85 70
fax: +32 (0) 2 225 85 88
e-mail: peter.vanbiesen@vaph.be
PGP: http://www.vaph.be/pgpkeys

Attachment: signature.asc
Description: This is a digitally signed message part.

---------------------------------------------------------------------------------
DISCLAIMER :
De personeelsleden van het agentschap doen hun best om in e-mails
betrouwbare informatie te geven. Toch kan niemand rechten doen gelden op
basis van deze inhoud. Als in de e-mail een stellingname voorkomt, is
dat niet noodzakelijk het standpunt van het agentschap. Rechtsgeldige
beslissingen of officiele standpunten worden alleen per brief toegestuurd.

Reply to: