summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-14 08:31:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-14 08:35:12 +0000
commit71b61581784283371df39cf5ad2aa1c3bd964e74 (patch)
tree8b4f714665d796a6b47ae28fb62bd6158a72f63f
parentManually removing some files that pybuild doesn't clean up during build (Clos... (diff)
downloaddeluge-71b61581784283371df39cf5ad2aa1c3bd964e74.tar.xz
deluge-71b61581784283371df39cf5ad2aa1c3bd964e74.zip
Removing generated files to fix FTBFS when build twice in a row (Closes: #1044344).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xdebian/rules11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index cac3bd5..dc88669 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,6 +16,17 @@ execute_after_dh_auto_clean:
rm -rf "$${ITEM}"; \
done
+ # remove generated files
+ rm -rf deluge/plugins/*/build
+ rm -f deluge/ui/web/js/deluge-all-debug.js
+ rm -f deluge/ui/web/js/extjs/ext-extensions-debug.js
+ rm -f deluge/ui/web/js/gettext.js
+
+ for file in $$(find . -type f -name "*.in"); \
+ do \
+ rm -f "$$(dirname "$${file}")"/"$$(basename "$${file}" .in)"; \
+ done
+
execute_before_dh_auto_build:
echo "$(VERSION)" > RELEASE-VERSION