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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user