noarch wins over i386 even if evr-older?

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

 



Hi,

I have a custom redhat-rpm-config package that I want to deploy. It
has a never evr than the standard package, and since the contents are
arch dependent, it is not noarch anymore.

On a RHEL5/i386 with a self-compiled yum 3.2.22 I see

> # repoquery redhat-rpm-config 
> redhat-rpm-config-0:9.0.1-1_29.el5.i386
> redhat-rpm-config-0:8.0.45-29.el5.noarch
> # yum install redhat-rpm-config 
> Setting up Install Process
> Resolving Dependencies
> --> Running transaction check
> ---> Package redhat-rpm-config.noarch 0:8.0.45-29.el5 set to be updated
> --> Finished Dependency Resolution
> 
> Dependencies Resolved
> 
> ================================================================================
>  Package                 Arch         Version               Repository
>  Size
> ================================================================================
> Installing:
>  redhat-rpm-config       noarch       8.0.45-29.el5         release
>  55 k
> 
> Transaction Summary
> ================================================================================
> Install      1 Package(s)         
> Update       0 Package(s)         
> Remove       0 Package(s)         
> 
> Total download size: 55 k
> Is this ok [y/N]: 

yum list does show both packages. Also yum install
redhat-rpm-config.i386 picks the proper package. But even in this case
a second install command w/o arch results in an error:

> # yum -qy install redhat-rpm-config
> Setting up Install Process
> Resolving Dependencies
> --> Running transaction check
> ---> Package redhat-rpm-config.noarch 0:8.0.45-29.el5 set to be
> updated
> --> Finished Dependency Resolution
> 
> Dependencies Resolved
> 
> ================================================================================
>  Package                 Arch         Version               Repository
>  Size
> ================================================================================
> Installing:
>  redhat-rpm-config       noarch       8.0.45-29.el5         release
>  55 k
> 
> Transaction Summary
> ================================================================================
> Install      1 Package(s)         
> Update       0 Package(s)         
> Remove       0 Package(s)         
> 
> Total download size: 55 k
> Downloading Packages:
> Running rpm_check_debug
> Running Transaction Test
> Finished Transaction Test
> 
> 
> Transaction Check Error:
>   package redhat-rpm-config-9.0.1-1_29.el5.i386 (which is newer than
>   redhat-rpm-config-8.0.45-29.el5.noarch) is already installed

It looks like the yum cli prefers noarch over arch specific packages
when not explicitely told to pick an arch. Shouldn't it first check
the evr and then favour an arch/noarch?

As a further manifestation of the bug, a yum update does properly
remove the old noarch package and replaces it with the i386
one. E.g. yum update does the right thing, yum install not.

Thanks!
-- 
Axel.Thimm at ATrpms.net

Attachment: pgp0IFkhjmx1l.pgp
Description: PGP signature

_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux