diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-21 16:59:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-21 16:59:42 +0300 |
commit | b30e59aa71641af36be5ce1df475c48f8cc83e47 (patch) | |
tree | 509df047f5a958f41bb0393894d30e0c8f8aa447 | |
parent | 1c7a422f78805a0533d9623c3f11f682f0c98083 (diff) |
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.
-rwxr-xr-x | build_files/package_spec/debian/rules | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build_files/package_spec/debian/rules b/build_files/package_spec/debian/rules index 60b8c694dd4..2991589916e 100755 --- a/build_files/package_spec/debian/rules +++ b/build_files/package_spec/debian/rules @@ -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" |