All pastes #52563 Raw Edit

Stuff

public python v1 · immutable
#52563 ·published 2006-05-01 14:02 UTC
rendered paste body
Vanha:    def fileReparse( self, params ):        """(re)Parse a bb file"""        bbfile = params[0]        print "SHELL: Parsing '%s'" % bbfile        parse.update_mtime( bbfile )        bb_data, fromCache = cooker.load_bbfile( bbfile )        cooker.pkgdata[bbfile] = bb_data        if fromCache:            print "SHELL: File has not been updated, not reparsing"        else:            print "SHELL: Parsed"    fileReparse.usage = "<bbfile>Uusi:     def fileReparse( self, params ):        """(re)Parse a bb file"""        bbfile = params[0]        print "SHELL: Parsing '%s'" % bbfile        parse.update_mtime( bbfile )        cooker.bb_cache.cacheValidUpdate(bbfile)        fromCache = cooker.bb_cache.loadData(bbfile, cooker)        cooker.bb_cache.sync()        if False #fromCache:            print "SHELL: File has not been updated, not reparsing"        else:            print "SHELL: Parsed"    fileReparse.usage = "<bbfile>"Virhe:Traceback (most recent call last):  File "/home/torakka/inssi/bitbake/bin/bitbake", line 1109, in ?    main()  File "/home/torakka/inssi/bitbake/bin/bitbake", line 1104, in main    cooker.cook( BBConfiguration( options ), args[1:] )  File "/home/torakka/inssi/bitbake/bin/bitbake", line 846, in cook    self.interactiveMode()  File "/home/torakka/inssi/bitbake/bin/bitbake", line 770, in interactiveMode    from bb import shell  File "/home/torakka/inssi/bitbake/lib/bb/shell.py", line 270    if False #fromCache:                       ^SyntaxError: invalid syntax