From e285ecce93e32121167d7e98330c27163f8553b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 20 May 2020 11:39:14 +0200 Subject: [PATCH] d/rules: Only remove Cargo.lock if it exists This allows to invoke the build target twice in a row --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 8b97f793..fa33deb5 100755 --- a/debian/rules +++ b/debian/rules @@ -9,7 +9,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all # The Debian version of linked-hash-map doesn't provide any hash, # causing Cargo to refuse to build with a crates.io copy build-arch: - rm Cargo.lock + [ ! -f Cargo.lock ] || rm Cargo.lock dh $@ --builddirectory=_build --buildsystem=meson override_dh_autoreconf: