PHP 8.5.2
Preview: Select.pm Size: 613 B
//usr/share/perl5/Debconf/Element/Noninteractive/Select.pm

#!/usr/bin/perl
# This file was preprocessed, do not edit!


package Debconf::Element::Noninteractive::Select;
use warnings;
use strict;
use base qw(Debconf::Element::Noninteractive);


sub show {
	my $this=shift;

	$this->question->template->i18n('');
	my @choices=$this->question->choices_split;
	$this->question->template->i18n(1);
	my $value=$this->question->value;
	$value='' unless defined $value;
	my $inlist=0;
	map { $inlist=1 if $_ eq $value } @choices;

	if (! $inlist) {
		if (@choices) {
			$this->value($choices[0]);
		}
		else {
			$this->value('');
		}
	}
	else {
		$this->value($value);
	}
}


1

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
189 B lrw-r--r-- 2024-04-12 12:40:53
Edit Download
1.65 KB lrw-r--r-- 2024-04-12 12:40:53
Edit Download
193 B lrw-r--r-- 2024-04-12 12:40:53
Edit Download
186 B lrw-r--r-- 2024-04-12 12:40:53
Edit Download
190 B lrw-r--r-- 2024-04-12 12:40:53
Edit Download
269 B lrw-r--r-- 2024-04-12 12:40:53
Edit Download
613 B lrw-r--r-- 2024-04-12 12:40:53
Edit Download
188 B lrw-r--r-- 2024-04-12 12:40:53
Edit Download
237 B lrw-r--r-- 2024-04-12 12:40:53
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).