[yocto] Problem about print in fetching

caterwaul caterwaul at 163.com
Sun Apr 8 06:46:27 PDT 2012


Hi,


I want to print out all the URI_SRC I use during the build.  And I have tried 3 methods in 2 places as follow. But all of these can not print out the src path. Did I make some mistakes? Could anyone help me on this? Thank you.


PLACE ONE  in poky-edison-6.0.1/bitbake/lib/bb/fetch2/__init__.py
class Fetch(object):
    def __init__(self, urls, d, cache = True):
......
        for url in urls:
            if url not in self.ud:
                print('====%s' % url) # code I added
                self.ud[url] = FetchData(url, d)
......


PLACE TWO  in poky-edison-6.0.1/meta/classes/base.bbclass
python base_do_fetch() {


src_uri = (bb.data.getVar('SRC_URI', d, True) or "").split()
if len(src_uri) == 0:
return
        print('====%s' % src_url) # code I added
        bb.note('====%s' % src_url) # code I added
}


Jim Green
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120408/bb774072/attachment.html>


More information about the yocto mailing list