158
159
# mark seen true, so that dont ask again while postinst
159
160
db_fset ca-certificates/new_crts seen true
161
db_set ca-certificates/enable_crts "$CERTS_ENABLED"
162
db_subst ca-certificates/enable_crts enable_crts "$CERTS_AVAILABLE"
163
if test "$seen" != true; then
164
db_fset ca-certificates/enable_crts seen false
166
db_title "ca-certificates configuration"
167
db_input low ca-certificates/enable_crts || true
162
# Ideally, we would be able to ask debconf for the language it's using, or
163
# at least have a shell binding for setlocale(). Since we don't, we have to
166
current_lc_messages="$(eval `locale`; echo "$LC_MESSAGES")"
172
case "$current_lc_messages" in
184
if dpkg --compare-versions "$cur_version" lt-nl "$pt_BR_fixed_version"; then
186
if db_fget ca-certificates/enable_crts asked_pt_br_question; then
189
if [ "$asked" != "true" ]; then
190
if [ -e "/etc/ssl/certs/ca-certificates.crt" ] && [ ! -s "/etc/ssl/certs/ca-certificates.crt" ]; then
192
if db_fget ca-certificates/enable_crts seen; then
195
if [ "$pt_seen" = "false" ]; then
196
CERTS_ENABLED="$CERTS_AVAILABLE"
199
CERTS_ENABLED="$CERTS_AVAILABLE"
210
if [ "$set_values" = "true" ]; then
211
db_set ca-certificates/enable_crts "$CERTS_ENABLED"
212
db_subst ca-certificates/enable_crts enable_crts "$CERTS_AVAILABLE"
213
if test "$seen" != true; then
214
db_fset ca-certificates/enable_crts seen false
216
db_title "ca-certificates configuration"
217
db_input $PRIO ca-certificates/enable_crts || true
220
if [ "$PRIO" = "critical" ]; then
221
db_fset ca-certificates/enable_crts asked_pt_br_question true