From e3dff44f73cc3f7b2c39991f99d09d4dce373bf9 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 23 Aug 2026 11:03:05 +0200 Subject: [PATCH] Blacklist the libs section from package imports Libraries never produce useful screenshots. Excluding by Debian archive section instead of a lib* name pattern keeps applications with lib-prefixed names (libreoffice, librecad, ...) importable. With REMOVE_BLACKLISTED_PACKAGE set, the next import also removes previously imported libs-section packages and their screenshots. --- lib/tasks/import_debian.rake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tasks/import_debian.rake b/lib/tasks/import_debian.rake index 8f84233..666e074 100644 --- a/lib/tasks/import_debian.rake +++ b/lib/tasks/import_debian.rake @@ -29,6 +29,10 @@ BLACKLIST_SECTION_PATTERN = [ %r{/?oldlibs$}, %r{/?libdevel$}, %r{/?cli-mono$}, + # Libraries never make useful screenshots - and unlike a "lib*" name + # pattern this does not hit applications like libreoffice (editors) + # or librecad (graphics) + %r{/?libs$}, ] # Whether to delete a blacklisted package from the database