tag 679959 patch
kthxbye

On Mon, Jul  2, 2012 at 19:14:58 +0200, Julien Cristau wrote:

> Package: dpkg
> Version: 1.16.5
> Severity: grave
> 
> When binNMUing a package with dpkg 1.16.5, the debs end up with a
> missing version in the Source field of their control file.

This seems to work:

--- /usr/bin/dpkg-gencontrol    2012-06-30 21:51:22.000000000 +0200
+++ ../dpkg-gencontrol  2012-07-02 19:24:18.000000000 +0200
@@ -308,10 +308,10 @@
     }
 }
 
-my $verdiff = $binaryversion ne $sourceversion;
+my $verdiff = $substvars->{'vars'}{'binary:Version'} ne 
$substvars->{'vars'}{'source:Version'};
 if ($oppackage ne $sourcepackage || $verdiff) {
     $fields->{'Source'} = $sourcepackage;
-    $fields->{'Source'} .= " (" . $sourceversion . ")" if $verdiff;
+    $fields->{'Source'} .= " (" . $substvars->{'vars'}{'source:Version'} . ")" 
if $verdiff;
 }
 
 if (!defined($substvars->get('Installed-Size'))) {

Cheers,
Julien

Attachment: signature.asc
Description: Digital signature

Reply via email to