[pkgcore] #228: [PATCH] traceback from restrictions/packages.py with python-2.6

0 views
Skip to first unread message

pkgcore

unread,
Mar 3, 2009, 7:05:58 AM3/3/09
to pkgco...@googlegroups.com
#228: [PATCH] traceback from restrictions/packages.py with python-2.6
------------------------+---------------------------------------------------
Reporter: djanderson | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 0.4.7.15
Component: pkgcore | Version: 0.4.7.14
Keywords: |
------------------------+---------------------------------------------------
Got this traceback with pkgcore-0.4.7.15_r1 and python-2.6:

{{{
# pmerge -uDvpN -s world
* Scanning for changed USE...
* Resolving...
/usr/lib/python2.6/site-packages/pkgcore/restrictions/packages.py:207:
DeprecationWarning: object.__init__() takes no parameters
PackageRestriction.__init__(self, attr, childrestriction, **kwds)

[snip...]
}}}

--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/228>
pkgcore <http://www.pkgcore.org/trac/pkgcore>
pkgcore package manager

pkgcore

unread,
Mar 3, 2009, 10:36:22 AM3/3/09
to pkgco...@googlegroups.com
#228: [PATCH] traceback from restrictions/packages.py with python-2.6
------------------------+---------------------------------------------------
Reporter: djanderson | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 0.4.7.15
Component: pkgcore | Version: 0.4.7.14
Keywords: |
------------------------+---------------------------------------------------

Comment(by agaffney):

I don't think your patch works the way you think it does. The new code
creates a "detached" instance of the PackageRestriction class instead of
calling the superclass's __init__() with 'self' like the old code did to
pass state.

--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/228#comment:1>

pkgcore

unread,
Mar 3, 2009, 11:16:53 AM3/3/09
to pkgco...@googlegroups.com
#228: traceback from restrictions/packages.py with python-2.6

------------------------+---------------------------------------------------
Reporter: djanderson | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 0.4.7.15
Component: pkgcore | Version: 0.4.7.14
Keywords: |
------------------------+---------------------------------------------------

Comment(by djanderson):

Replying to [comment:1 agaffney]:

> I don't think your patch works the way you think it does. The new code
creates a "detached" instance of the PackageRestriction class instead of
calling the superclass's __init__() with 'self' like the old code did to
pass state.

Ah, I see. I didn't take a close look, in fact this error hit me 2 seconds
after I installed pkgcore for the first time, so I'm not yet familiar with
it. Thanks for pointing out my error, I'll retract the patch.

--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/228#comment:2>

pkgcore

unread,
Mar 25, 2009, 5:19:46 AM3/25/09
to pkgco...@googlegroups.com
#228: traceback from restrictions/packages.py with python-2.6
-------------------------+--------------------------------------------------
Reporter: djanderson | Owner:
Type: defect | Status: closed
Priority: normal | Milestone: 0.4.7.15
Component: pkgcore | Version: 0.4.7.14
Resolution: fixed | Keywords:
-------------------------+--------------------------------------------------
Changes (by ferringb):

* status: new => closed
* resolution: => fixed


Comment:

Sorry for missing this, this was fixed in 0.4.7.16; I've been sitting on
this fix (and other py2.6 ones) for a bit, pardon.

--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/228#comment:3>

Reply all
Reply to author
Forward
0 new messages