<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl -w
# This file was preprocessed, do not edit!


package Debconf::Template::Transient;
use strict;
use base 'Debconf::Template';
use fields qw(_fields);



sub new {
	my $this=shift;
	my $template=shift;
	
	unless (ref $this) {
		$this = fields::new($this);
	}
	$this-&gt;{template}=$template;
	$this-&gt;{_fields}={};
	return $this;
}


sub get {
	die "get not supported on transient templates";
}


sub fields {
	my $this=shift;

	return keys %{$this-&gt;{_fields}};
}

                
sub clearall {
	my $this=shift;

	foreach my $field (keys %{$this-&gt;{_fields}}) {
		delete $this-&gt;{_fields}-&gt;{$field};
	}
}


{
	my @langs=Debconf::Template::_getlangs();

	sub AUTOLOAD {
		(my $field = our $AUTOLOAD) =~ s/.*://;
		no strict 'refs';
		*$AUTOLOAD = sub {
			my $this=shift;

			return $this-&gt;{_fields}-&gt;{$field}=shift if @_;
		
			if ($Debconf::Template::i18n &amp;&amp; @langs) {
				foreach my $lang (@langs) {
					return $this-&gt;{_fields}-&gt;{$field.'-'.lc($lang)}
						if exists $this-&gt;{_fields}-&gt;{$field.'-'.lc($lang)};
				}
			}
			return $this-&gt;{_fields}-&gt;{$field};
		};
		goto &amp;$AUTOLOAD;
	}
}


1
</pre></body></html>