make rust-src cleanup more robust

rustc-perf now contains a directory called "LICENSES" which trips up this find
invocation.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2024-10-22 10:02:34 +02:00
parent 6c6ae01d99
commit ee27cb19ec

2
debian/rules vendored
View File

@ -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' \