bug in EmergeBase.__init__

Ralf Habacker ralf.habacker at freenet.de
Wed Jan 12 13:29:18 CET 2011


Am 12.01.2011 13:14, schrieb Wolfgang Rohdewald:
>
> this code cannot work because at this time self.subinfo is not
>
set:
>
> # if class name has been provided add implicit build time dependency
>
> if className and 
> os.getenv('EMERGE_ENABLE_IMPLICID_BUILDTIME_DEPENDENCIES'):
>
> packageName = 'internal/%s' % className
>
> if not packageName in self.subinfo.buildDependencies:
>
> self.subinfo.buildDependencies[packageName] = 'default'
>

this is not true  - in files below the portage subdir there are class 
instantiation like shown below:

class Package(CMakePackageBase):
     def __init__( self ):
         self.subinfo = subinfo()
         CMakePackageBase.__init__( self )

self.subinfo is present before EmergeBase has been instantiated.

Ralf

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


More information about the Kde-windows mailing list