Package: localepurge
Version: 0.7.3.8
Severity: important
Tags: patch

With USE_DPKG localepurge will remove files below /usr/share/help/C.
This removes help docs for lots of applications in the locale en_US.
An example is Gnome eog: install it with the above setting, then look for
/usr/share/help/C/eog/index.page

The reason is a missing pattern in gen-dpkg-cfg.pl.
Also, the corresponding pattern to keep files locale-specific from
the list in locale.nopurge is wrong.
Patch attached.

Cheers, Roderich



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.3.0-rc8 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages localepurge depends on:
ii  debconf [debconf-2.0]  1.5.73
ii  locales                2.29-1
ii  perl                   5.28.1-6
ii  procps                 2:3.3.15-2+b1
ii  ucf                    3.0038+nmu1

localepurge recommends no packages.

Versions of packages localepurge suggests:
pn  bleachbit  <none>
pn  debfoster  <none>
pn  deborphan  <none>

-- debconf information:
* localepurge/use-dpkg-feature: true
  localepurge/verbose: false
  localepurge/quickndirtycalc: true
  localepurge/remove_no:
  localepurge/showfreedspace: true
* localepurge/mandelete: true
* localepurge/nopurge: de, de_DE, de_DE.UTF-8, en, en_DK.UTF-8, en_NZ.UTF-8, 
en_US, en_US.UTF-8
  localepurge/none_selected: false
  localepurge/dontbothernew: true
--- a/usr/share/localepurge/gen-dpkg-cfg.pl
+++ b/usr/share/localepurge/gen-dpkg-cfg.pl
@@ -42,7 +42,8 @@
     '/usr/share/calendar/*.*',
     '/usr/share/calendar/@LOCALE@/*',
     '/usr/share/aptitude/aptitude-defaults.@LOCALE@', 
'/usr/share/aptitude/README.@LOCALE@', '/usr/share/aptitude/help-@LOCALE@.txt', 
'/usr/share/aptitude/mine-help-@LOCALE@.txt', 
-    '/usr/share/help/@LOCALE@',
+    '/usr/share/help/C/*',
+    '/usr/share/help/@LOCALE@/*',
     '/usr/share/vim/vim*/lang/@LOCALE@/*', '/usr/share/vim/vim*/lang/*.*'
 );
 

Reply via email to