From 20d8955a4cda3e6907424ab86df623da85c214c1 Mon Sep 17 00:00:00 2001 From: Artyom Smirnov Date: Wed, 20 Apr 2016 15:54:58 +0300 Subject: [PATCH] If fakeroot available use it for creating install image --- builds/install/arch-specific/linux/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builds/install/arch-specific/linux/Makefile.in b/builds/install/arch-specific/linux/Makefile.in index 8f9883737c2..ddb975c5388 100644 --- a/builds/install/arch-specific/linux/Makefile.in +++ b/builds/install/arch-specific/linux/Makefile.in @@ -86,7 +86,7 @@ $(DebugFile) : buildImageDir (cd $(GEN_ROOT)/$(DebugDir); tar -czf ../$(DebugFile) .) buildRoot: - (cd $(GEN_ROOT); ./install/makeInstallImage.sh) + command -v fakeroot > /dev/null 2> /dev/null && (cd $(GEN_ROOT); fakeroot ./install/makeInstallImage.sh) || (cd $(GEN_ROOT); ./install/makeInstallImage.sh) buildDebugInfo: buildRoot mkdir -p $(GEN_ROOT)/$(DebugDir)