]> err.no Git - dpkg/commitdiff
dpkg-genchanges: Reinstate support of the ${Format} substvar
authorRaphael Hertzog <hertzog@debian.org>
Thu, 17 Jan 2008 08:01:37 +0000 (09:01 +0100)
committerRaphael Hertzog <hertzog@debian.org>
Thu, 17 Jan 2008 08:10:44 +0000 (09:10 +0100)
* scripts/dpkg-genchanges.pl: As documented by deb-substvars(5), one can
use the ${Format} substvar to override the format of the .changes file.

ChangeLog
scripts/dpkg-genchanges.pl

index 74c226a97d38454d54cd6601be813c590d2d820a..acc6ee1bfaa4f834417c788e57d3a5dcc27ccf5f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-17  Raphael Hertzog  <hertzog@debian.org>
+
+       * scripts/dpkg-genchanges.pl: Reinstate support of the ${Format}
+       substvars.
+
 2008-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>,
             Guillem Jover  <guillem@debian.org>
 
index f6ada091b9139ff12406599fa4bcf0a7b9af21b0..e88092f66ee82f669c42de929d763d69576874fc 100755 (executable)
@@ -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`);