[debhelper-devel] [debhelper] 01/01: Dh_Lib: We only need the latest changelog entry.

Niels Thykier nthykier at moszumanska.debian.org
Thu Sep 3 07:58:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit dc803cf0f929e4b8ad38103d24e7e83c4a2ccde7
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Sep 3 08:55:19 2015 +0100

    Dh_Lib: We only need the latest changelog entry.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 Debian/Debhelper/Dh_Lib.pm | 2 +-
 debian/changelog           | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 07c1d89..d3e2ba0 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -1147,7 +1147,7 @@ sub get_source_date_epoch {
 		return;
 	}
 
-	my $changelog = Dpkg::Changelog::Debian->new();
+	my $changelog = Dpkg::Changelog::Debian->new(range => {"count" => 1});
 	$changelog->load("debian/changelog");
 
 	my $tt = @{$changelog}[0]->get_timestamp();
diff --git a/debian/changelog b/debian/changelog
index b815f36..6318084 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -44,6 +44,8 @@ debhelper (9.20150811+unreleased) UNRELEASED; urgency=medium
     Files listed here will not cause dh_install to complain
     with --list-missing.  Thanks to Peter Eisentraut for the
     suggestion.  (Closes: #436240)
+  * Cherry-pick from Chris Lamb to only read the latest
+    changelog entry when determing the SOURCE_DATE_EPOCH.
 
   [ Paul Tagliamonte ]
   * dh_gencontrol: Put debug debs back in the "debug" section.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list