summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorAaron M. Ucko <ucko@debian.org>2017-12-20 18:47:43 -0500
committerAaron M. Ucko <ucko@debian.org>2017-12-20 18:47:43 -0500
commit54fa20bb7280958bd934a48eccfdd278818eb51a (patch)
tree977e277933dc89fb47eb999f0e6e639ae3301304 /debian/rules
parent0072281fce98f2c2bbb43ac779f811ed4eb34029 (diff)
debian/rules (override_dh_auto_clean): Restore DSV/DSV.py from .bak
Allow for repeated builds with no intervention.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules4
1 files changed, 4 insertions, 0 deletions
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