Re: apt-get autoclean configuration
On Wednesday, 19 July 2017 23:02:04 CEST tomas@tuxteam.de wrote:
> There is this function StringToBool in apt-pkg/contrib/strutl.cc:
>
> [...]
>
> | // Check for positives
> | if (strcasecmp(Text.c_str(),"no") == 0 ||
> |
> | strcasecmp(Text.c_str(),"false") == 0 ||
> | strcasecmp(Text.c_str(),"without") == 0 ||
> | strcasecmp(Text.c_str(),"off") == 0 ||
> | strcasecmp(Text.c_str(),"disable") == 0)
> |
> | return 0;
> |
> | // Check for negatives
> | if (strcasecmp(Text.c_str(),"yes") == 0 ||
> |
> | strcasecmp(Text.c_str(),"true") == 0 ||
> | strcasecmp(Text.c_str(),"with") == 0 ||
> | strcasecmp(Text.c_str(),"on") == 0 ||
> | strcasecmp(Text.c_str(),"enable") == 0)
> |
> | return 1;
>
> That seems to be it: no/false/without/off/disable versus
> yes/true/with/on/enable. Should that be in the docs?
Thanks tomás, that's great!
I think this info should defenitely be in the man page.
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Sent from my brain using neurons fueled by glucose.
⢿⡄⠘⠷⠚⠋⠀
⠈⠳⣄
Reply to: