[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rpmorg-list
Subject:    Re: Dependency error
From:       Michael Fernandez <michael.fernandez () dms ! at>
Date:       2002-11-20 7:38:57
Message-ID: 1037777937.9024.6.camel () i3s15 ! sophia ! dms ! at
[Download RAW message or body]

On Tue, 2002-11-19 at 17:23, Gregory Leblanc wrote:
> On Tue, 2002-11-19 at 06:23, Michael Fernandez wrote:
> > Hi all,
> > 
> > I've created two rpms, let say A.rpm and B.rpm
> > The package A requires B to be installed. ('Requires:B' in the
> > specfile of A package).
> > 
> > The package B will not be installed if a condition is not satisfied 
> > (in the specfile of B package I've put:
> >    %pre
> >    if [ my_condition ]
> >    then
> >       exit 1
> >    fi
> > )
> > 
> > So I want the package A to be installed only if the package B is
> > installed.
> > Nevertheless, when I install the two packages (rpm -Uvh A.rpm B.rpm), 
> > I've got an error for the package B (this is what I want), but the
> > package A is even installed. Finally I've a package installed but it's
> > dependencies are not installed.
> > 
> > In fact I want the package A be installed only if B succeed. How can I
> > do ?
> 
> Try changing your "Requires: A" to "PreReq: A"
> 	Greg

I've got the same behavior with 'PreReq'

Michael.




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic