On Wed, Oct 14, 2020 at 1:12 PM Daniel P. Berrangé <berra...@redhat.com>
wrote:

> On Wed, Oct 14, 2020 at 12:57:54PM +0200, Roman Mohr wrote:
> > Hi,
> >
> > I am playing with RPM dependency resolution and I came across this in the
> > fc32 repos:
> >
> > # dnf -y deplist gnutls | grep libtasn1
> > Last metadata expiration check: 2:04:09 ago on Wed 14 Oct 2020 09:47:12
> > CEST.
> >   dependency: libtasn1 >= 4.3
> >    provider: libtasn1-4.16.0-1.fc32.i686
> >    provider: libtasn1-4.16.0-1.fc32.x86_64
> >
> > Could someone explain to me why version 4.16.0 satisfies 4.3? Does RPM
> > implicitly add `0.` to the comparison and it effectively compares
> `4.16.0`
> > with `0.4.3`?
>
> IIRC, it will compare each component of the version in turn and stop
> evaluation as soon as it gets an answer. So effectively it has
> compared  4.16 <=> 4.3, the trailing '.0' in 4.16.0 never needed
> evaluating.
>
>
Vitaly, Daniel thanks. My brain permanently makes 4.1.6 out of 4.16. It is
obviously correct.

Best regards,
Roman


> Regards,
> Daniel
> --
> |: https://berrange.com      -o-
> https://www.flickr.com/photos/dberrange :|
> |: https://libvirt.org         -o-
> https://fstop138.berrange.com :|
> |: https://entangle-photo.org    -o-
> https://www.instagram.com/dberrange :|
> _______________________________________________
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to