Bug 475779 - Unable to use smart
Summary: Unable to use smart
Keywords:
Status: CLOSED DUPLICATE of bug 473213
Alias: None
Product: Fedora
Classification: Fedora
Component: smart
Version: 10
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Axel Thimm
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-10 13:21 UTC by markm
Modified: 2009-07-31 17:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-12-27 13:58:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description markm 2008-12-10 13:21:39 UTC
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 ~]#

Comment 1 Pavel Rosenboim 2008-12-16 09:24:38 UTC
I got same problem

Comment 2 Axel Thimm 2008-12-21 22:07:53 UTC
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!

Comment 3 markm 2008-12-24 20:18:08 UTC
[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 ~]#

Comment 4 Axel Thimm 2008-12-27 13:58:42 UTC
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 ***


Note You need to log in before you can comment on or make changes to this bug.