Description of problem: Smart fails on reading a cache when first started - it makes it unusable software. Version-Release number of selected component (if applicable): How reproducible: always (tested on two different machines) Steps to Reproduce: 1. install smart: $ yum install smart-gui 2. start smart either from console or gui Actual results: smart asks about adding new repos then crashes while reading cache Expected results: smart asks about adding new repos and not crashes Additional info: [root@m4300 ~]# smart --shell New channel 'Fedora 10 - i386 (core)' detected. Include it? (Y/n): y New channel 'Fedora 10 - Source (core-source)' detected. Include it? (Y/n): y New channel 'Fedora 10 - i386 - Debug (core-debuginfo)' detected. Include it? (Y/n): y New channel 'Fedora - i386 - Development (development)' detected. Include it? (Y/n): y New channel 'Fedora - i386 - Development - Debug (development-debuginfo)' detected. Include it? (Y/n): y New channel 'Fedora - Development - Source (development-source)' detected. Include it? (Y/n): y New channel 'Fedora 10 - i386 - Updates - Debug (updates-debuginfo)' detected. Include it? (Y/n): y New channel 'Fedora 10 - Updates Source (updates-source)' detected. Include it? (Y/n): y New channel 'Fedora 10 - i386 - Updates (updates)' detected. Include it? (Y/n): y New channel 'Fedora 10 - i386 - Test Updates (updates-testing)' detected. Include it? (Y/n): y New channel 'Fedora 10 - i386 - Test Updates Debug (updates-testing-debuginfo)' detected. Include it? (Y/n): y New channel 'Fedora 10 - Test Updates Source (updates-testing-source)' detected. Include it? (Y/n): y Smart Package Manager 1.1 - Shell Mode Traceback (most recent call last): ############################## ( 35%)) File "/usr/bin/smart", line 195, in <module> main(sys.argv[1:]) File "/usr/bin/smart", line 168, in main exitcode = iface.run(opts.command, opts.argv) File "/usr/lib/python2.5/site-packages/smart/interfaces/text/interactive.py", line 38, in run self._ctrl.reloadChannels() File "/usr/lib/python2.5/site-packages/smart/control.py", line 378, in reloadChannels self._cache.load() File "/usr/lib/python2.5/site-packages/smart/backends/rpm/metadata.py", line 293, in load prvargs, reqargs, upgargs, cnfargs) File "/usr/lib/python2.5/site-packages/smart/backends/rpm/base.py", line 106, in equals fk([x for x in other.provides if x.name[0] != "/"])): IndexError: string index out of range [root@m4300 ~]#
I got same problem
Please test again against 1.1-58 (not yet passed through to updates, may take a day or two yet). And please don't use --shell for testing, but plain smart for the beginning to differentiate between bugs in the shell and in smart proper. Thanks!
[root@d620 ~]# smart --shell Change in field 'Disabled' of channel 'Fedora - i386 - Development (development)' detected. Old value: No New value: Yes Replace current value? (Y/n): y Change in field 'Disabled' of channel 'Fedora - i386 - Development - Debug (development-debuginfo)' detected. Old value: No New value: Yes Replace current value? (Y/n): y Change in field 'Disabled' of channel 'Fedora - Development - Source (development-source)' detected. Old value: No New value: Yes Replace current value? (Y/n): y Change in field 'Name' of channel 'Fedora 9.89 - i386 - Test Updates (updates-testing)' detected. Old value: Fedora 9.89 - i386 - Test Updates New value: Fedora 10 - i386 - Test Updates Replace current value? (Y/n): y Change in field 'Base URL' of channel 'Fedora 9.89 - i386 - Test Updates (updates-testing)' detected. Old value: http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/9.89/i386/ New value: http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/10/i386/ Replace current value? (Y/n): y Change in field 'Name' of channel 'Fedora 9.89 - i386 - Test Updates Debug (updates-testing-debuginfo)' detected. Old value: Fedora 9.89 - i386 - Test Updates Debug New value: Fedora 10 - i386 - Test Updates Debug Replace current value? (Y/n): y Change in field 'Base URL' of channel 'Fedora 9.89 - i386 - Test Updates Debug (updates-testing-debuginfo)' detected. Old value: http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/9.89/i386/debug/ New value: http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/10/i386/debug/ Replace current value? (Y/n): y Change in field 'Name' of channel 'Fedora 9.89 - Test Updates Source (updates-testing-source)' detected. Old value: Fedora 9.89 - Test Updates Source New value: Fedora 10 - Test Updates Source Replace current value? (Y/n): y Change in field 'Base URL' of channel 'Fedora 9.89 - Test Updates Source (updates-testing-source)' detected. Old value: http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/9.89/SRPMS/ New value: http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/10/SRPMS/ Replace current value? (Y/n): y Change in field 'Name' of channel 'Fedora 9.89 - i386 - Updates - Debug (updates-debuginfo)' detected. Old value: Fedora 9.89 - i386 - Updates - Debug New value: Fedora 10 - i386 - Updates - Debug Replace current value? (Y/n): y Change in field 'Base URL' of channel 'Fedora 9.89 - i386 - Updates - Debug (updates-debuginfo)' detected. Old value: http://download.fedora.redhat.com/pub/fedora/linux/updates/9.89/i386/debug/ New value: http://download.fedora.redhat.com/pub/fedora/linux/updates/10/i386/debug/ Replace current value? (Y/n): y Change in field 'Name' of channel 'Fedora 9.89 - Updates Source (updates-source)' detected. Old value: Fedora 9.89 - Updates Source New value: Fedora 10 - Updates Source Replace current value? (Y/n): y Change in field 'Base URL' of channel 'Fedora 9.89 - Updates Source (updates-source)' detected. Old value: http://download.fedora.redhat.com/pub/fedora/linux/updates/9.89/SRPMS/ New value: http://download.fedora.redhat.com/pub/fedora/linux/updates/10/SRPMS/ Replace current value? (Y/n): y Change in field 'Name' of channel 'Fedora 9.89 - i386 - Updates (updates)' detected. Old value: Fedora 9.89 - i386 - Updates New value: Fedora 10 - i386 - Updates Replace current value? (Y/n): y Change in field 'Base URL' of channel 'Fedora 9.89 - i386 - Updates (updates)' detected. Old value: http://download.fedora.redhat.com/pub/fedora/linux/updates/9.89/i386/ New value: http://download.fedora.redhat.com/pub/fedora/linux/updates/10/i386/ Replace current value? (Y/n): y Change in field 'Name' of channel 'Fedora 9.89 - i386 (core)' detected. Old value: Fedora 9.89 - i386 New value: Fedora 10 - i386 Replace current value? (Y/n): y Change in field 'Base URL' of channel 'Fedora 9.89 - i386 (core)' detected. Old value: http://download.fedora.redhat.com/pub/fedora/linux/releases/9.89/Everything/i386/os/ New value: http://download.fedora.redhat.com/pub/fedora/linux/releases/10/Everything/i386/os/ Replace current value? (Y/n): y Change in field 'Name' of channel 'Fedora 9.89 - Source (core-source)' detected. Old value: Fedora 9.89 - Source New value: Fedora 10 - Source Replace current value? (Y/n): y Change in field 'Base URL' of channel 'Fedora 9.89 - Source (core-source)' detected. Old value: http://download.fedora.redhat.com/pub/fedora/linux/releases/9.89/Everything/source/SRPMS/ New value: http://download.fedora.redhat.com/pub/fedora/linux/releases/10/Everything/source/SRPMS/ Replace current value? (Y/n): y Change in field 'Name' of channel 'Fedora 9.89 - i386 - Debug (core-debuginfo)' detected. Old value: Fedora 9.89 - i386 - Debug New value: Fedora 10 - i386 - Debug Replace current value? (Y/n): y Change in field 'Base URL' of channel 'Fedora 9.89 - i386 - Debug (core-debuginfo)' detected. Old value: http://download.fedora.redhat.com/pub/fedora/linux/releases/9.89/Everything/i386/debug/ New value: http://download.fedora.redhat.com/pub/fedora/linux/releases/10/Everything/i386/debug/ Replace current value? (Y/n): y Smart Package Manager 1.1 - Shell Mode Traceback (most recent call last): #################################################### ( 39%) File "/usr/bin/smart", line 195, in <module> main(sys.argv[1:]) File "/usr/bin/smart", line 168, in main exitcode = iface.run(opts.command, opts.argv) File "/usr/lib/python2.5/site-packages/smart/interfaces/text/interactive.py", line 38, in run self._ctrl.reloadChannels() File "/usr/lib/python2.5/site-packages/smart/control.py", line 378, in reloadChannels self._cache.load() File "/usr/lib/python2.5/site-packages/smart/backends/rpm/metadata.py", line 293, in load prvargs, reqargs, upgargs, cnfargs) File "/usr/lib/python2.5/site-packages/smart/backends/rpm/base.py", line 106, in equals fk([x for x in other.provides if x.name[0] != "/"])): IndexError: string index out of range [root@d620 ~]# rpm -qa | grep smart smart-1.1-58.fc10.i386 smartmontools-5.38-7.fc10.i386 fedora-package-config-smart-10-15.i386 smart-gui-1.1-58.fc10.i386 [root@d620 ~]#
Sorry, for F10 the build was bogus. I resubmitted a new one. Also this is the same bug as bug #473213, so I'll make this a duplicate of the other one. Thanks! *** This bug has been marked as a duplicate of bug 473213 ***