[Reproducible-commits] [debhelper] 08/10: fix mtimes also for ddebs.

Jérémy Bobbio lunar at moszumanska.debian.org
Sun Jul 12 14:59:12 UTC 2015


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

lunar pushed a commit to branch pu/reproducible_builds
in repository debhelper.

commit 2017da26ae8278c881cc62cafbc87de208ac7939
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Sun Apr 5 15:19:41 2015 +0200

    fix mtimes also for ddebs.
    
    Conflicts:
    	dh_builddeb
---
 dh_builddeb | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/dh_builddeb b/dh_builddeb
index b9387ac..27478fb 100755
--- a/dh_builddeb
+++ b/dh_builddeb
@@ -132,6 +132,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 				foreach split(":", $ENV{DH_ALWAYS_EXCLUDE});
 		}
 	}
+
+	my $find_options='';
+	if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') {
+		$find_options="! \\( $dh{EXCLUDE_FIND} \\)";
+	}
+
 	if ( -d $ddeb_tmpdir) {
 		my $ddeb_control = "${ddeb_tmpdir}/DEBIAN/control";
 		# Only build the ddeb if it has a control file.  People might
@@ -142,6 +148,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 			# the ddeb.
 			my @args = default_compressor_args(["-z1", "-Zxz", "-Sextreme"],
 											   @{$dh{U_PARAMS}});
+			complex_doit("find $ddeb_tmpdir -newermt '$dh{DATE}' $find_options -print0",
+					"2>/dev/null | xargs -0r touch --no-dereference --date='$dh{DATE}'");
+
 			doit("dpkg-deb", @args,
 				 "--build", $ddeb_tmpdir, $dh{DESTDIR});
 		} else {
@@ -150,10 +159,6 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 		}
 	}
 
-	my $find_options='';
-	if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') {
-		$find_options="! \\( $dh{EXCLUDE_FIND} \\)";
-	}
 	complex_doit("find $tmp -newermt '$dh{DATE}' $find_options -print0",
 		"2>/dev/null | xargs -0r touch --no-dereference --date='$dh{DATE}'");
 

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



More information about the Reproducible-commits mailing list