Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281101 - app-portage/gentoolkit-0.3.0_rc7: TypeError: 'NoneType' object is unsubscriptable
Summary: app-portage/gentoolkit-0.3.0_rc7: TypeError: 'NoneType' object is unsubscript...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
: 292565 (view as bug list)
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2009-08-11 13:16 UTC by Wolfram Schlich (RETIRED)
Modified: 2010-01-07 16:32 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schlich (RETIRED) gentoo-dev 2009-08-11 13:16:58 UTC
noc1 ~ # glsa-check -pe affected
Traceback (most recent call last):
  File "/usr/bin/glsa-check", line 191, in <module>
    if myglsa.isVulnerable():
  File "//usr/lib/python2.5/site-packages/gentoolkit/glsa/__init__.py", line 669, in isVulnerable
    or (None != getMinUpgrade([v,], path["unaff_atoms"]))
  File "//usr/lib/python2.5/site-packages/gentoolkit/glsa/__init__.py", line 424, in getMinUpgrade
    or (minimize ^ (portage.pkgcmp(c_pv[1:], portage.catpkgsplit(rValue)[1:]) > 0))) \
TypeError: 'NoneType' object is unsubscriptable
noc1 ~ # qlist -Ive portage gentoolkit
app-portage/gentoolkit-0.2.4.5
sys-apps/portage-2.1.6.13
noc1 ~ #
Comment 1 Wolfram Schlich (RETIRED) gentoo-dev 2009-08-11 13:17:33 UTC
Downgrading to gentoolkit-0.2.4.5 fixed it for me.
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2009-08-18 17:48:38 UTC
This bug only affects trunk (0.3). A patch has been committed to svn that fixes this.



commit 04eb609ed6b53eb1cd0123e20aa82d1dc5860b37
Author: rbu <rbu@e84c3a59-eaf8-0310-85df-8a9fcd7b4891>
Date:   Tue Aug 18 17:47:32 2009 +0000

    getminupgrade: fix documentation and backtrace

    Bug 281101: Fix a backtrace introduced in r647. in getminupgrade the
    rValue variable was still leftover and was used in a check when
    glsa-check was run in --emergelike mode and more than one upgrade atoms
    existed.

    Also, update the API documentation to reflect changes back then.

    git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gentoolkit/trunk/gentoolkit@671 e84c3a59-eaf8-0310-85df-8a9fcd7b4891
Comment 3 Robert Buchholz (RETIRED) gentoo-dev 2009-08-18 17:50:24 UTC
As a quick fix, change
 portage.catpkgsplit(rValue)[1:]) 
to
 portage.catpkgsplit(update)[1:])

in glsa/__init__.py
Comment 4 Christian Ruppert (idl0r) gentoo-dev 2009-11-14 22:49:48 UTC
*** Bug 292565 has been marked as a duplicate of this bug. ***
Comment 5 Robert Buchholz (RETIRED) gentoo-dev 2009-11-15 16:24:45 UTC
No need to cc security. This bug is fixed, all that is left is to release a new rc.
Comment 6 Krzysztof Olędzki 2009-11-15 16:30:13 UTC
(In reply to comment #5)
> No need to cc security. This bug is fixed, all that is left is to release a new
> rc.
> 

Any ETA? ;)
Comment 7 Eric Stein 2010-01-04 02:03:04 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > No need to cc security. This bug is fixed, all that is left is to release a new
> > rc.
> > 
> 
> Any ETA? ;)
> 

I also want a release for this.  Unfixed still, at least in ~amd64.
Comment 8 Paul Varner (RETIRED) gentoo-dev 2010-01-07 16:32:02 UTC
Released in gentoolkit-0.3.0_rc8