Bug 149845 - smart crashes under certain conditions
Summary: smart crashes under certain conditions
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 4
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Christoph Thiel
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-10 03:31 UTC by First Name Last Name
Modified: 2006-02-14 00:57 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description First Name Last Name 2006-02-10 03:31:20 UTC
smart --shell
Smart Package Manager 0.41 - Shell Mode

Traceback (most recent call last):                     ###########
                                                            ( 15%)
 File "/usr/bin/smart", line 194, in ?
   main(sys.argv[1:])
 File "/usr/bin/smart", line 167, in main
   exitcode = iface.run(opts.command, opts.argv)
 File "/usr/lib/python2.4/site-packages/smart/interfaces/text/interactive.py",
line 38, in run
   self._ctrl.reloadChannels()
 File "/usr/lib/python2.4/site-packages/smart/control.py", line 375,
in reloadChannels
   self._cache.load()
 File "/usr/lib/python2.4/site-packages/smart/backends/rpm/yast2.py",
line 266, in load
   self.parseEntry()
 File "/usr/lib/python2.4/site-packages/smart/backends/rpm/yast2.py",
line 168, in parseEntry
   conflicts = self.getInfoEntity("Con")
 File "/usr/lib/python2.4/site-packages/smart/backends/rpm/yast2.py",
line 94, in getInfoEntity
   data.append((parts[0], parts[1], parts[2]))
IndexError: list index out of range

===============================================

There is an error on how to split/detect the start/end of an
information entity (text parsing logic error) in yast2.py

According to Mauricio Teixeira (the yast support patch developer) this has been fixed long ago among several other issues. 10.1 beta 3 has an old patch applied.

The new patch solving this issue can be found here:
http://tracker.labix.org/issue62 

If I am not wrong, this bug should be assigned to Cristoph Thiel (SuSE
developer)
Comment 1 Michael Gross 2006-02-13 14:23:44 UTC
Let's give it a try...
Comment 2 Christoph Thiel 2006-02-13 14:30:06 UTC
Can you please verify if your smart package has this change, by calling

  rpm -q --changelog smart

Wed Jan 18 15:06:39 CET 2006 - cthiel@suse.de
- updated smart-YaST2.diff
Comment 3 First Name Last Name 2006-02-13 14:43:09 UTC
Mauricio told me:
=====================================================================
Actually either Pascal Bleser (Guru's RPMS) and Cristoph Thiel (SuSE
developer) are applying this patch against their packages (the one on
Beta3 already has the YaST2 channel support, THE OLD ONE).
=====================================================================
and pointed me to that patch.

server:~ # rpm -q --changelog smart
* Sun Feb 05 2006 - cthiel@suse.de
- fix requires (added python-xml)

* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires

* Wed Jan 18 2006 - cthiel@suse.de
- updated smart-YaST2.diff

* Wed Jan 11 2006 - cthiel@suse.de
- make sure not to package cElementTree, because we use the system one
  anyway

* Thu Jan 05 2006 - cthiel@suse.de
- added smart-YaST2.diff: experimental support for YaST2 repositories by
  Mauricio Teixeira

* Wed Dec 21 2005 - cthiel@suse.de
- update to version 0.41
- removed smart-trunk.diff

* Wed Dec 21 2005 - cthiel@suse.de
- fix requires

* Tue Nov 22 2005 - cthiel@suse.de
- added directory /etc/smart to filelist

* Tue Nov 22 2005 - cthiel@suse.de
- branched smart-gui
- added distro.py
- added desktop file
- added patch to the protectedread code from SVN (smart-trunk.diff)

* Wed Nov 02 2005 - cthiel@suse.de
- added various patches

* Mon Oct 17 2005 - cthiel@suse.de
- fix a "TypeError: unsubscriptable object" with "exotic" packages

* Sun Oct 16 2005 - cthiel@suse.de
- initial package (version 0.40),
  based on the work of Pascal Bleser <pascal.bleser@skynet.be>
Comment 4 Christoph Thiel 2006-02-13 14:54:06 UTC
You'r right -- I'v just updated the patch to match the upstream version. Many thanks!

Mon Feb 13 15:48:56 CET 2006 - cthiel@suse.de
- updated smart-YaST2.diff (fixes #149845)

I'm building packages for testing right now and will put them onto ftp.suse.com soon. Stay tuned.
Comment 5 Christoph Thiel 2006-02-13 15:15:08 UTC
Updated packages have been uploaded to ftp://ftp.suse.com/pub/people/cthiel/10.1-beta/
Comment 6 First Name Last Name 2006-02-14 00:48:14 UTC
THe package was updated but no the version number.
Imposible to upgrade.
Had to uninstall old version, install new one.
Seems to work right.
Comment 7 Christoph Thiel 2006-02-14 00:57:49 UTC
Great. Many thanks for testing. (The version number has been raised on rebuild for the next beta already.)