From ee27cb19ec7b1a54b34a062599696789d60e61b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 22 Oct 2024 10:02:34 +0200 Subject: [PATCH] make rust-src cleanup more robust MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rustc-perf now contains a directory called "LICENSES" which trips up this find invocation. Signed-off-by: Fabian Grünbichler --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 71f4380f17..1a51db4d18 100755 --- a/debian/rules +++ b/debian/rules @@ -490,7 +490,7 @@ override_dh_install-indep: dh_install $(RM) -rf $(SRC_CLEAN:%=debian/rust-src/usr/src/rustc-$(RUST_LONG_VERSION)/%) # Get rid of lintian warnings - find debian/rust-src/usr/src/rustc-$(RUST_LONG_VERSION) \ + find debian/rust-src/usr/src/rustc-$(RUST_LONG_VERSION) -type f \ \( -name .gitignore \ -o -name 'LICENSE*' \ -o -name 'LICENCE' \