DB cleanup: Remove some non-manpages & fix wrongly-detected locales
This commit is contained in:
parent
17fc298217
commit
8a0fac08b6
2 changed files with 35 additions and 2 deletions
19
sql/update-2016-10-16.sql
Normal file
19
sql/update-2016-10-16.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
-- Various non-manpages
|
||||
DELETE FROM man
|
||||
WHERE filename ~ '/Makefile\.(in|am)$'
|
||||
OR filename ~ '/\.cvsignore(\.gz)?$'
|
||||
OR filename !~ '/[^/]*\.[^/]*$'
|
||||
OR filename ~ '/man\.tmp$';
|
||||
|
||||
-- Wrong locales, found with:
|
||||
-- SELECT DISTINCT Locale FROM man ORDER BY locale;
|
||||
UPDATE man SET locale = NULL
|
||||
WHERE locale = '5man'
|
||||
OR locale = 'c'
|
||||
OR locale ~ '^man.?$'
|
||||
OR locale ~ '^Man-Part[12]$';
|
||||
|
||||
-- Man page containing only a '$1'. Likely a build failure in earlier FreeBSD releases.
|
||||
DELETE FROM man WHERE hash = '\x5ea7b8101325c704551852f70b652e0a2b0d7c12';
|
||||
|
||||
DELETE FROM contents c WHERE NOT EXISTS(SELECT 1 FROM man m WHERE m.hash = c.hash);
|
||||
Loading…
Add table
Add a link
Reference in a new issue