scripts/dpkg-source.pl: Remove the IO-layer that converts to
UTF-8. It's not as smart as I expected.
+ * scripts/dpkg-genchanges.pl: Do not substitute variables on
+ the output.
+ * man/dpkg-genchanges.pl: Document this change.
+
2008-01-22 Guillem Jover <guillem@debian.org>
* configure.ac: Release 1.14.16.2.
* Remove the ":utf8" layer that utf8-encodes already valid utf8.
Closes: #462098
+ * Disable variable substitution in dpkg-genchanges. Closes: #462079, #462089
-- Raphael Hertzog <hertzog@debian.org> Tue, 22 Jan 2008 18:15:42 +0100
.IR substvarsfile ;
the default is
.BR debian/substvars .
+No variable substitution is done on any of the fields that are output,
+however the special variable \fIFormat\fR will override the field of the
+same name.
.TP
.BI \-D field = value
Override or add an output control file field.
my $control = Dpkg::Control->new($controlfile);
my $fields = Dpkg::Fields::Object->new();
$substvars->set_version_substvars($changelog->{"Version"});
+$substvars->parse($varlistfile) if -e $varlistfile;
if (not is_sourceonly) {
open(FL,"<",$fileslistfile) || &syserr(_g("cannot read files list file"));
print(STDERR "$progname: $origsrcmsg\n") ||
&syserr(_g("write original source message")) unless $quiet;
-$fields->{'Format'} = '${Format}'; # Use value stored in substvars
+$fields->{'Format'} = $substvars->get("Format");
if (!defined($fields->{'Date'})) {
chomp(my $date822 = `date -R`);
delete $fields->{$f};
}
-$substvars->parse($varlistfile) if -e $varlistfile;
tied(%{$fields})->set_field_importance(@changes_fields);
-tied(%{$fields})->output(\*STDOUT, $substvars);
+tied(%{$fields})->output(\*STDOUT); # Note: no substitution of variables