From a4e5ab5c166ff744024ca52b44b697f7e742fe42 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Thu, 12 Jan 2023 15:40:34 -0800 Subject: [PATCH] Add special patterns for rustlib (and analysis) files The rustlib (and their corresponding analysis) files change their names between builds so we can't list them in the specfile. Signed-off-by: William Douglas --- autospec/files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autospec/files.py b/autospec/files.py index ec10d69..d3eafc7 100644 --- a/autospec/files.py +++ b/autospec/files.py @@ -281,6 +281,8 @@ class FileManager(object): (r"^/usr/share/omf", "main", "/usr/share/omf/*"), (r"^/usr/share/installed-tests/", "tests"), (r"^/usr/libexec/installed-tests/", "tests"), + (r"^/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/[a-zA-Z0-9._+-]+\.rlib", "lib", "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/*.rlib"), + (r"^/usr/lib/rustlib/x86_64-unknown-linux-gnu/analysis/[a-zA-Z0-9._+-]+\.json", "lib", "/usr/lib/rustlib/x86_64-unknown-linux-gnu/analysis/*.json"), (r"^/usr/share/clear/optimized-elf/bin", "bin", "/usr/share/clear/optimized-elf/bin*"), (r"^/usr/share/clear/optimized-elf/exec", "libexec", "/usr/share/clear/optimized-elf/exec*"), (r"^/usr/share/clear/optimized-elf/lib", "lib", "/usr/share/clear/optimized-elf/lib*"),