From: Don Armstrong <don@donarmstrong.com>
Date: Tue, 29 Mar 2016 00:21:04 +0000 (-0700)
Subject: fix inversion of date/versions in Debbugs::Status leading to negative times argument
X-Git-Tag: release/2.6.0~210
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ec74d9703b7f7045ec85d9c66ae19a0710fd0bd9;p=debbugs.git

fix inversion of date/versions in Debbugs::Status leading to negative times argument
---

diff --git a/Debbugs/Status.pm b/Debbugs/Status.pm
index 73506611..26fbcc23 100644
--- a/Debbugs/Status.pm
+++ b/Debbugs/Status.pm
@@ -270,7 +270,7 @@ sub read_bug{
 	 # create the found/fixed hashes which indicate when a
 	 # particular version was marked found or marked fixed.
 	 @{$data{$field}}{@{$data{"${field}_versions"}}} =
-	      (('') x (@{$data{"${field}_date"}} - @{$data{"${field}_versions"}}),
+	      (('') x (@{$data{"${field}_versions"}} - @{$data{"${field}_date"}}),
 	       @{$data{"${field}_date"}});
     }