From e00eaa3c51ab40c8523276fa263c388555d09c1a Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Tue, 23 Jan 2018 09:42:58 +0900 Subject: [PATCH] ubuntu_sysroot: do not archive .git directory We're building a ubuntu package on top of the git source tree. However, the dpkg-source which is called by sbuild did not exclude the .git directory when generating a tarball. This patch fixes the tarball does not contain the .git directory anymore. According to the dpkg-source help, it has default patterns if there is no arguments after -I. However, this patch only defines .git releated regular expressions because I don't want to omit unwanted sources by the default patterns. Change-Id: I8d478d0d963f27b7be7a99014fc6bb5b2dfb8fd1 Signed-off-by: Chanho Park --- build_ubuntu_sysroot.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build_ubuntu_sysroot.sh b/build_ubuntu_sysroot.sh index 18c31c7..1be32d4 100755 --- a/build_ubuntu_sysroot.sh +++ b/build_ubuntu_sysroot.sh @@ -125,6 +125,7 @@ build_package() --host $BUILD_ARCH \ --extra-repository="deb [trusted=yes] http://localhost:$PORT ./" \ --anything-failed-commands="touch $dest_dir/.build_failed" \ + --dpkg-source-opts="-I.git*" \ -j$JOBS --verbose popd move_build_output $dest_dir