Comment 8 for bug 244447

Revision history for this message
Kevin Jamieson (qq3dh7w-5e50n-mm0v6n6) wrote :

Apologies if I've resurrected a long-forgotten issue, but we're seeing similar behaviour. When both an x86_64 and i586 package are available in a repository with the same version number, smart is selecting the i586 package for installation instead of preferring the x86_64 package.

The --explain option does not appear to provide any useful debugging information.

This is with smart-1.3 (I couldn't find a smart-1.4.1 package for SLES10, but can try to build or dig one up if you think the problem may be resolved in a newer version).

linux-k7bl:/var/local/tmp/repo # ls -ltr
total 82168
-rw-r--r-- 1 root root 41377766 Mar 22 00:32 MySQL-server-enterprise-5.1.61-1.sles10.i586.rpm
-rw-r--r-- 1 root root 42664809 Mar 22 00:32 MySQL-server-enterprise-5.1.61-1.sles10.x86_64.rpm
linux-k7bl:/var/local/tmp/repo # createrepo .
2/2 - MySQL-server-enterprise-5.1.61-1.sles10.x86_64.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
linux-k7bl:/var/local/tmp/repo # smart channel --add test type=rpm-md baseurl=/var/local/tmp/repo

Alias: test
Type: rpm-md
Base URL: /var/local/tmp/repo

Include this channel? (y/N): y

linux-k7bl:/var/local/tmp/repo # smart install --explain MySQL-server-enterprise
Loading cache...
Updating cache... ########################################################################################################################################################## [100%]

Computing transaction...

Installing packages (1):
  MySQL-server-enterprise-5.1.61-1.sles10@i586

40.4MB of package files are needed. 107.6MB will be used.

Confirm changes? (Y/n): n

linux-k7bl:/var/local/tmp/repo # smart install --explain MySQL-server-enterprise@x86_64
Loading cache...
Updating cache... ########################################################################################################################################################## [100%]

Computing transaction...

Installing packages (1):
  MySQL-server-enterprise-5.1.61-1.sles10@x86_64

41.7MB of package files are needed. 122.1MB will be used.

Confirm changes? (Y/n): n

linux-k7bl:/var/local/tmp/repo # uname -a
Linux linux-k7bl 2.6.16.60-0.54.5-smp #1 SMP Fri Sep 4 01:28:03 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux
linux-k7bl:/var/local/tmp/repo # cat /etc/issue

Welcome to SUSE Linux Enterprise Server 10 SP3 (x86_64) - Kernel \r (\l).

linux-k7bl:/var/local/tmp/repo # rpm -q smart
smart-1.3-3.1
linux-k7bl:/var/local/tmp/repo #