From: Raphael Hertzog Date: Thu, 17 Jan 2008 08:01:37 +0000 (+0100) Subject: dpkg-genchanges: Reinstate support of the ${Format} substvar X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81499f41451871a02d01b9c47cb61800578358bf;p=dpkg dpkg-genchanges: Reinstate support of the ${Format} substvar * scripts/dpkg-genchanges.pl: As documented by deb-substvars(5), one can use the ${Format} substvar to override the format of the .changes file. --- diff --git a/ChangeLog b/ChangeLog index 74c226a9..acc6ee1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-17 Raphael Hertzog + + * scripts/dpkg-genchanges.pl: Reinstate support of the ${Format} + substvars. + 2008-01-17 Samuel Thibault , Guillem Jover diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl index f6ada091..e88092f6 100755 --- a/scripts/dpkg-genchanges.pl +++ b/scripts/dpkg-genchanges.pl @@ -64,6 +64,7 @@ my $forcechangedby; my $since; my $substvars = Dpkg::Substvars->new(); +$substvars->set("Format", $changes_format); use constant SOURCE => 1; use constant ARCH_DEP => 2; @@ -411,7 +412,7 @@ if (!is_binaryonly) { print(STDERR "$progname: $origsrcmsg\n") || &syserr(_g("write original source message")) unless $quiet; -$fields->{'Format'} = $changes_format; +$fields->{'Format'} = '${Format}'; # Use value stored in substvars if (!defined($fields->{'Date'})) { chomp(my $date822 = `date -R`);