[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#903964: locales: buggy regexp in locales.postinst yields useless locales regeneration when locales-all is installed



On 2018-07-17 14:06:58 +0200, Vincent Lefevre wrote:
> According to the dpkg-query(1) man page:
> 
>               Desired action:
>                 u = Unknown
>                 i = Install
>                 h = Hold
>                 r = Remove
>                 p = Purge
> 
>               Package status:
>                 n = Not-installed
>                 c = Config-files
>                 H = Half-installed
>                 U = Unpacked
>                 F = Half-configured
>                 W = Triggers-awaiting
>                 t = Triggers-pending
>                 i = Installed
> 
>               Error flags:
>                 <empty> = (none)
>                 R = Reinst-required
> 
> so that it is testing the package status of locales-all. But during
> an upgrade, the actual status is "iU " (things may be different if
> packages are upgraded separately).
> 
> Shouldn't the desired action be tested instead, i.e. '^i'?

Well, actually this is probably incorrect. It could also be on hold.
And I'm not sure what "Desired action" means exactly. If locales-all
is marked for installation in dselect, will this be "i"? In such a
case, using "Desired action" is not possible; see:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=840901

Perhaps a combination of flags of "Package status"...
'^.[UFWti]'?

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: