prefixForBuildType in portage.py does nothing

Wolfgang Rohdewald wolfgang at rohdewald.de
Wed Jan 12 16:23:48 CET 2011


what is it intended to do?

1. self is wrong. This means the caller of
prefixForBuildType puts the buildType arg into self,
and _buildType will always be None.

2. whatever arguments it gets, it always returns ''

I tend to simply removing it and inlining its call in
emerge.py

def prefixForBuildType( self, _buildType=None ):
    postfix = ''
    if _buildType == None:
        _buildType = buildType()
    return postfix


-- 
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-windows/attachments/20110112/f1c1f4d0/attachment.htm 


More information about the Kde-windows mailing list