unshare fallback

üst abb259bd
......@@ -756,6 +756,8 @@ class Builder:
if os.getuid() != 0:
if os.system("fakeroot --version &>/dev/null") == 0:
command += "fakeroot "
else:
command += "unshare -r "
if os.path.exists(src_dir):
os.chdir(src_dir)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment