def update(ctx): lst = os.listdir(Context.waf_dir + '/waflib/extras') for x in lst: if not x.endswith('.py'): continue tool = x.replace('.py', '') Configure.download_tool(tool, force=True)
def update(ctx): lst=os.listdir(Context.waf_dir+'/waflib/extras') for x in lst: if not x.endswith('.py'): continue tool=x.replace('.py','') Configure.download_tool(tool,force=True)
def update(ctx): """download a specific tool into the local waf directory""" lst = os.listdir(Context.waf_dir + '/waflib/extras') for x in lst: if not x.endswith('.py'): continue tool = x.replace('.py', '') Configure.download_tool(tool, force=True)
def update(ctx): lst=Options.options.files.split(',') if not lst: lst=[x for x in Utils.listdir(Context.waf_dir+'/waflib/extras')if x.endswith('.py')] for x in lst: tool=x.replace('.py','') try: Configure.download_tool(tool,force=True,ctx=ctx) except Errors.WafError: Logs.error('Could not find the tool %s in the remote repository'%x)
def update(ctx): """updates the plugins from the *waflib/extras* directory""" lst = Options.options.files.split(",") if not lst: lst = [x for x in Utils.listdir(Context.waf_dir + "/waflib/extras") if x.endswith(".py")] for x in lst: tool = x.replace(".py", "") try: Configure.download_tool(tool, force=True, ctx=ctx) except Errors.WafError: Logs.error("Could not find the tool %s in the remote repository" % x)