Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153181 - Corrupt binary packge triggers AttributeError: 'NoneType' object has no attribute 'strip'
Summary: Corrupt binary packge triggers AttributeError: 'NoneType' object has no attri...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 147007
  Show dependency tree
 
Reported: 2006-10-28 14:13 UTC by Zac Medico
Modified: 2006-10-28 16:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix AttributeError for invalid binpkgs that have no CATEGORY data (invalid_binpkg.patch,1.27 KB, patch)
2006-10-28 15:01 UTC, Zac Medico
Details | Diff
fix AttributeError for invalid binpkgs that have no CATEGORY data (invalid_binpkg.patch,1.29 KB, patch)
2006-10-28 16:07 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2006-10-28 14:13:55 UTC
The following traceback is from bug 147010, comment #27:

Performing Global Updates: /usr/portage/profiles/updates/4Q-2006
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
......
Traceback (most recent call last):
  File "/usr/bin/emerge", line 4503, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 4214, in emerge_main
    portage.global_updates(settings, trees, mtimedb["updates"])
  File "/usr/lib/portage/pym/portage.py", line 7128, in global_updates
    trees["/"]["bintree"].move_ent(update_cmd)
  File "/usr/lib/portage/pym/portage.py", line 5510, in move_ent
    self.populate()
  File "/usr/lib/portage/pym/portage.py", line 5755, in populate
    mycat = mytbz2.getfile("CATEGORY").strip()
AttributeError: 'NoneType' object has no attribute 'strip'
Comment 1 Zac Medico gentoo-dev 2006-10-28 15:01:41 UTC
Created attachment 100666 [details, diff]
fix AttributeError for invalid binpkgs that have no CATEGORY data

This is fixed in trunk r4867 and the 2.1.2 branch r4868.
Comment 2 Zac Medico gentoo-dev 2006-10-28 16:07:48 UTC
Created attachment 100670 [details, diff]
fix AttributeError for invalid binpkgs that have no CATEGORY data

updated patch, adds a missing continue statement (svn r4869).
Comment 3 Zac Medico gentoo-dev 2006-10-28 16:36:24 UTC
This has been released in 2.1.2_rc1-r1.