adir = None
ispython = flags.get('python')
- fakeroot = flags.get('fakeroot')
+ if flags.get('fakeroot') and not flags.get('task'):
+ bb.fatal("Function %s specifies fakeroot but isn't a task?!" % func)
lockflag = flags.get('lockfiles')
if lockflag:
if ispython:
exec_func_python(func, d, runfile, cwd=adir)
else:
- exec_func_shell(func, d, runfile, cwd=adir, fakeroot=fakeroot)
+ exec_func_shell(func, d, runfile, cwd=adir)
_functionfmt = """
def {function}(d):
except OSError:
pass
-def exec_func_shell(function, d, runfile, cwd=None, fakeroot=False):
+def exec_func_shell(function, d, runfile, cwd=None):
"""Execute a shell function from the metadata
Note on directory behavior. The 'dirs' varflag should contain a list
os.chmod(runfile, 0775)
- if fakeroot:
- cmd = ['fakeroot', runfile]
- else:
- cmd = runfile
+ cmd = runfile
if logger.isEnabledFor(logging.DEBUG):
logfile = LogTee(logger, sys.stdout)