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
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 enterprise- 5.1.61- 1.sles10. i586.rpm enterprise- 5.1.61- 1.sles10. x86_64. rpm /var/local/ tmp/repo # createrepo . enterprise- 5.1.61- 1.sles10. x86_64. rpm /var/local/ tmp/repo # smart channel --add test type=rpm-md baseurl= /var/local/ tmp/repo
total 82168
-rw-r--r-- 1 root root 41377766 Mar 22 00:32 MySQL-server-
-rw-r--r-- 1 root root 42664809 Mar 22 00:32 MySQL-server-
linux-k7bl:
2/2 - MySQL-server-
Saving Primary metadata
Saving file lists metadata
Saving other metadata
linux-k7bl:
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 ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### [100%]
Loading cache...
Updating cache... #######
Computing transaction...
Installing packages (1): server- enterprise- 5.1.61- 1.sles10@ i586
MySQL-
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 ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### ####### [100%]
Loading cache...
Updating cache... #######
Computing transaction...
Installing packages (1): server- enterprise- 5.1.61- 1.sles10@ x86_64
MySQL-
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 60-0.54. 5-smp #1 SMP Fri Sep 4 01:28:03 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux /var/local/ tmp/repo # cat /etc/issue
Linux linux-k7bl 2.6.16.
linux-k7bl:
Welcome to SUSE Linux Enterprise Server 10 SP3 (x86_64) - Kernel \r (\l).
linux-k7bl: /var/local/ tmp/repo # rpm -q smart /var/local/ tmp/repo #
smart-1.3-3.1
linux-k7bl: