Add nearly_forbidden_days configuration

Introduce the `nearly_forbidden_days` configuration to determine the
number of days a module should be considered *nearly forbidden* prior
reaching its expiry date set by `module-forbid` modulefile command.

Default value for this option is obtained from
--with-nearly-forbidden-days configure option, which is set to 14 days
by default.

Configuration value can be superseded by use of
MODULES_NEARLY_FORBIDDEN_DAYS environment variable.
This commit is contained in:
Xavier Delaruelle
2020-08-25 06:29:55 +02:00
parent fd06ddfc4c
commit 4efcf2bb2a

View File

@@ -87,6 +87,8 @@ array set g_config_defs [list\
ignored_dirs {{} {CVS RCS SCCS .svn .git .SYNC .sos} 0}\
locked_configs {{} {@lockedconfigs@} 0}\
ml {MODULES_ML @ml@ 0 {0 1}}\
nearly_forbidden_days {MODULES_NEARLY_FORBIDDEN_DAYS @nearlyforbiddendays@\
0 integer}\
pager {MODULES_PAGER {@pagercmd@} 0}\
rcfile {MODULERCFILE <undef> 0}\
run_quarantine {MODULES_RUN_QUARANTINE <undef> 0}\