[Python-modules-commits] [python-dsv] 03/06: debian/rules (override_dh_auto_clean): Restore DSV/DSV.py from .bak
Aaron M. Ucko
ucko at moszumanska.debian.org
Wed Dec 20 23:57:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
ucko pushed a commit to branch master
in repository python-dsv.
commit 54fa20bb7280958bd934a48eccfdd278818eb51a
Author: Aaron M. Ucko <ucko at debian.org>
Date: Wed Dec 20 18:47:43 2017 -0500
debian/rules (override_dh_auto_clean): Restore DSV/DSV.py from .bak
Allow for repeated builds with no intervention.
---
debian/changelog | 4 +++-
debian/rules | 4 ++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 7b66b1f..f30d8c1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,10 @@ python-dsv (1.4.1-6) UNRELEASED; urgency=medium
* NOT YET RELEASED.
* debian/control: Build depend on split-out 2to3. (Closes: #884668.)
+ * debian/rules (override_dh_auto_clean): Restore DSV/DSV.py from .bak if
+ present, to allow for repeated builds with no intervention.
- -- Aaron M. Ucko <ucko at debian.org> Wed, 20 Dec 2017 18:45:57 -0500
+ -- Aaron M. Ucko <ucko at debian.org> Wed, 20 Dec 2017 18:47:42 -0500
python-dsv (1.4.1-5) unstable; urgency=medium
diff --git a/debian/rules b/debian/rules
index f6437cf..294a4d7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,7 @@ export PYBUILD_BEFORE_BUILD_python3 = 2to3 -w DSV/DSV.py
%:
dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_clean:
+ [ ! -f DSV/DSV.py.bak ] || mv -v DSV/DSV.py.bak DSV/DSV.py
+ dh_auto_clean
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-dsv.git
More information about the Python-modules-commits
mailing list