[poky] [PATCH 0/1] Fix sstate error
Zhai, Edwin
edwin.zhai at intel.com
Fri Feb 11 16:20:06 PST 2011
Richard Purdie wrote:
>
> On Fri, 2011-02-11 at 22:42 +0800, Zhai, Edwin wrote:
> > Richard Purdie wrote:
> > > Good question. The import should really always be at the top of
> the code
> > > block in question so I think its a python constraint, not a .bbclass
> > > one...
> > >
> >
> > Seems in-middle "import" is widely used in other *.py,
> > See bitbake/lib/bb/fetch/ssh.py,
> > def go(self, url, urldata, d):
> > ..........................
> > import commands
> > cmd = 'scp -B -r %s %s %s/' % (
> > port,
> > commands.mkarg(fr),
> > commands.mkarg(ldir)
> > )
> >
> > I found only bb has such limitation:all the "import bb.xxx" are in the
> > head of function, and adding stuff before it will cause same problem.
> > Anything special for bb module?
>
> Is it just specific to the way we hacked the fetch vs fetch2 switch in?
>
> Also, are you saying this problem only happens in parsed python in
> the .bb and .bbclass files or that it happens in the bitbake code in
> general?
>
Also in bitbake code like bitbake/lib/bb/utils.py.
> Cheers,
>
> Richard
>
More information about the poky
mailing list