Correctly handle a few more mis-identified locales

This commit is contained in:
Yorhel 2021-12-16 13:44:39 +01:00
parent c6f53fb0fb
commit d19c56f285
2 changed files with 18 additions and 3 deletions

View file

@ -0,0 +1,8 @@
-- 'overrides' is not a valid locale. Rather, that was a directory that CentOS
-- used for updated man pages without overwriting the pages already installed
-- on the system.
-- 'man' is just a badly nested directory.
-- The others are openmpi using non-standard directories for some reason.
WITH b(id) AS (SELECT id FROM locales WHERE locale IN('man', 'overrides') OR locale ~ '(openmpi|mpich|mvapich)'),
f AS (UPDATE files SET locale = 0 WHERE locale IN(SELECT id FROM b))
DELETE FROM locales WHERE id IN(SELECT id FROM b);