Skip to content

Commit

Permalink
ubuntu_sysroot: do not archive .git directory
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
cometzero committed Jan 23, 2018
1 parent fdf60b7 commit e00eaa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build_ubuntu_sysroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e00eaa3

Please sign in to comment.