Hi,
I tested this feature a little and I find the following problem.
I have package testA that requires (testB | testC). I tried to installed it.

# rpm -i testA-1-1.x86_64.rpm
error: Failed dependencies:
    (testB | testC) is needed by testA-1-1.x86_64
# rpm -i testA-1-1.x86_64.rpm testB-1-1.x86_64.rpm
# rpm -q testA
testA-1-1.x86_64
#rpm -q testB
testB-1-1.x86_64

That's ok. Now I have successfully installed packages testA and testB. But then
I tried to uninstall package testB.

# rpm -e testB
# rpm -q testB
package testB is not installed

And this is problem I shouldn't be able to unistall package testB because it is
required by testA. This problem was created in commit 8674de47 on line 2108
in lib/rpmdb.c. The last char of string name is cut off no matter if that char
is white char or not. Try this:

# rpm -q --whatrequires testB
no package requires testB
# rpm -q --whatrequries test      # Now without the last char
testA-1-1.x86_64
testA-1-1.x86_64

 Lubos


----- Original Message -----
> From: "Michael Schroeder" <m...@suse.de>
> To: "Panu Matilainen" <pmati...@redhat.com>
> Cc: rpm-maint@lists.rpm.org
> Sent: Friday, September 12, 2014 6:06:15 PM
> Subject: Re: [Rpm-maint] RFC: experiments with rich dependencies
> 
> On Thu, Sep 11, 2014 at 03:18:19PM +0300, Panu Matilainen wrote:
> > With rpm 4.12 branched out and new development cycle just starting, this
> > would be the prime time to land in such big new features and AFAICS this
> > would make for a fine starting point for further refining. I'd say go ahead
> > and push this pretty much as-is [**], unless others have objections.
> > Florian?
> 
> Ok, pushed.
> 
> Happy hacking,
>   Michael.
> 
> --
> Michael Schroeder                                   m...@suse.de
> SUSE LINUX Products GmbH,  GF Jeff Hawn, HRB 16746 AG Nuernberg
> main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
> _______________________________________________
> Rpm-maint mailing list
> Rpm-maint@lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-maint
> 
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to