[debhelper-devel] [debhelper] 01/01: Dh_Lib: Export get_source_date_epoch()

Niels Thykier nthykier at moszumanska.debian.org
Wed Aug 12 14:18:14 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 0939d0910aed780e4767077d69c23eb7b0a1a8d6
Author: Niels Thykier <niels at thykier.net>
Date:   Wed Aug 12 16:13:40 2015 +0200

    Dh_Lib: Export get_source_date_epoch()
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 Debian/Debhelper/Dh_Lib.pm | 1 +
 doc/PROGRAMMING            | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index ebac938..16ac003 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -23,6 +23,7 @@ use vars qw(@EXPORT %dh);
 	    &cross_command &set_buildflags &get_buildoption
 	    &install_dh_config_file &error_exitcode &package_multiarch
 	    &install_file &install_prog &install_lib &install_dir
+	    &get_source_date_epoch
 );
 
 my $max_compat=10;
diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING
index 701af6b..3b0bc13 100644
--- a/doc/PROGRAMMING
+++ b/doc/PROGRAMMING
@@ -271,6 +271,10 @@ getpackages($type)
 	of "arch" and "indep" packages.
 	As a side effect, populates %package_arches and %package_types with
 	the types of all packages (not only those returned).
+get_source_date_epoch()
+	Return the value of $ENV{SOURCE_DATE_EPOCH} if exists.
+	Otherwise compute the value from the first changelog entry,
+	use it to set the ENV variable and return it.
 inhibit_log()
 	Prevent logging the program's successful finish to
 	debian/*debhelper.log

-- 
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