Skip to content

Commit

Permalink
ubuntu: 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: I39aeefd433c9f34c2284740a1a3f407fbe9e42a8
Signed-off-by: Chanho Park <[email protected]>
  • Loading branch information
cometzero committed Jan 23, 2018
1 parent 0624d9a commit fdf60b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ build_package()
--host $ARCH \
--extra-repository="deb [trusted=yes] http://localhost:$PORT ./" \
--anything-failed-commands="touch $dest_dir/.build_failed" \
--dpkg-source-opts="-I.git*" \
-j$JOBS
popd
move_build_output $dest_dir
Expand Down

0 comments on commit fdf60b7

Please sign in to comment.