d/rules: Only remove Cargo.lock if it exists

This allows to invoke the build target twice in a row
This commit is contained in:
Guido Günther
2020-05-20 11:39:14 +02:00
parent 5715458d33
commit e285ecce93

2
debian/rules vendored
View File

@ -9,7 +9,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# The Debian version of linked-hash-map doesn't provide any hash, # The Debian version of linked-hash-map doesn't provide any hash,
# causing Cargo to refuse to build with a crates.io copy # causing Cargo to refuse to build with a crates.io copy
build-arch: build-arch:
rm Cargo.lock [ ! -f Cargo.lock ] || rm Cargo.lock
dh $@ --builddirectory=_build --buildsystem=meson dh $@ --builddirectory=_build --buildsystem=meson
override_dh_autoreconf: override_dh_autoreconf: