Mandrake Linux Archives: smart@mandrivalinux.org

Mandrake Linux: smart@mandrivalinux.org


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

  • From: Smart Package Manager
  • Subject: [smart] [Smart Package Manager] #123: Smart crashes with TypeError: unsubscriptable object
  • Date: 15 Jul 2005 20:19:27 -0000

#123: Smart crashes with TypeError: unsubscriptable object
-------------------------+--------------------------------------------------
       Id:  123          |      Status:  new                          
Component:  backend-rpm  |    Modified:  Fri Jul 15 15:19:03 2005     
 Severity:  normal       |   Milestone:                               
 Priority:  normal       |     Version:                               
    Owner:  niemeyer     |    Reporter:  moschny at ipd dot uka dot de
-------------------------+--------------------------------------------------
 On a SuSE 9.0 system, with rpm 4.1.1, smart 0.36 crashes while parsing rpm
 headers.
 {{{
 Loading cache...
 Traceback (most recent call last):                  ###
 (  5%)
   File "/usr/bin/smart", line 193, in ?
     main(sys.argv[1:])
   File "/usr/bin/smart", line 166, in main
     exitcode = iface.run(opts.command, opts.argv)
   File "/usr/lib/python2.3/site-packages/smart/interface.py", line 53, in
 run
     result = _command.main(self._ctrl, opts)
   File "/usr/lib/python2.3/site-packages/smart/commands/update.py", line
 77, in main
     ctrl.reloadChannels()
   File "/usr/lib/python2.3/site-packages/smart/control.py", line 375, in
 reloadChannels
     self._cache.load()
   File "/usr/lib/python2.3/site-packages/smart/backends/rpm/header.py",
 line 275, in load
     upgargs.append((Obs, n[i], CM.get(f[i]&CF), vi))
 TypeError: unsubscriptable object
 }}}

 For any reason, OBSOLETEFLAGS, REQUIREFLAGS and CONFLICTFLAGS are not
 arrays.

 All channels but one are of type rpm-md, so it seems that the crash
 happens while reading the local rpm database channel (of type rpm-sys).

-- 
Ticket URL: <http://smartpm.python-hosting.com/ticket/123>
Smart Package Manager <http://smartpm.python-hosting.com/>
The Smart Package Manager Project


Date Index | Thread Index

Search the archive:



To (un)subscribe from/to the lists:

Sympa mailing lists server.





Fund the Mandriva Linux project

Looking for a job?