patch [#26146] debian/rules: Avoid unnecessary downloading

--- from the tracker
It's annoying that build_debian.sh downloads the source tree to create tarball every time we build a deb package.

fix_debian_rules_avoid_downloading.patch modifies debian/rules so that the tarball will be created from local repository if possible.
This commit is contained in:
Campbell Barton 2011-02-21 13:59:42 +00:00
parent 1c7a422f78
commit b30e59aa71
1 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,11 @@ override_dh_python3:
get-orig-source:
rm -rf get-orig-source $(TARBALL)
mkdir get-orig-source
svn -q export -r $(REV) $(SVN_URL) get-orig-source/blender-$(VER)
if [ "$(SVN_URL)" = . ] && [ `svnversion` = "$(REV)" ]; then \
svn -q export . get-orig-source/blender-$(VER); \
else \
svn -q export -r $(REV) $(SVN_URL) get-orig-source/blender-$(VER); \
fi
GZIP='--best --no-name' tar czf $(TARBALL) -C get-orig-source blender-$(VER)
rm -rf get-orig-source
@echo "$(TARBALL) created; move it to the right destination to build the package"