[Reproducible-commits] [strip-nondeterminism] 01/01: Revert "Replace generated times in files generated by docbook-to-man."

Chris Lamb lamby at moszumanska.debian.org
Thu Feb 5 22:00:15 UTC 2015


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

lamby pushed a commit to branch master
in repository strip-nondeterminism.

commit 85250583e58b8e74a75e74cda8e337d6ea7c7a21
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Feb 5 22:00:00 2015 +0000

    Revert "Replace generated times in files generated by docbook-to-man."
    
    Let's fix this in Debian/toolchain/upstream instead first (#776143). Or at
    least try.
    
    This reverts commit 966f648b6d4adcc2491cb84d4e72ded4eaad5b89.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 lib/File/StripNondeterminism.pm |  6 -----
 t/docbooktoman.t                | 51 -----------------------------------------
 2 files changed, 57 deletions(-)

diff --git a/lib/File/StripNondeterminism.pm b/lib/File/StripNondeterminism.pm
index 59df3f0..8fcaf23 100644
--- a/lib/File/StripNondeterminism.pm
+++ b/lib/File/StripNondeterminism.pm
@@ -22,7 +22,6 @@ use strict;
 use warnings;
 
 use File::StripNondeterminism::handlers::ar;
-use File::StripNondeterminism::handlers::docbooktoman;
 use File::StripNondeterminism::handlers::gzip;
 use File::StripNondeterminism::handlers::jar;
 use File::StripNondeterminism::handlers::javadoc;
@@ -54,10 +53,6 @@ sub get_normalizer_for_file {
 	if (m/\.a$/ && _get_file_type($_) =~ m/ar archive/) {
 		return \&File::StripNondeterminism::handlers::ar::normalize;
 	}
-	# docbook-to-man
-	if (m/\.\d$/ && _get_file_type($_) =~ m/troff/) {
-		return \&File::StripNondeterminism::handlers::docbooktoman::normalize;
-	}
 	# gzip
 	if (m/\.(gz|dz)$/ && _get_file_type($_) =~ m/gzip compressed data/) {
 		return \&File::StripNondeterminism::handlers::gzip::normalize;
@@ -92,7 +87,6 @@ sub get_normalizer_for_file {
 sub get_normalizer_by_name {
 	$_ = shift;
 	return \&File::StripNondeterminism::handlers::ar::normalize if $_ eq 'ar';
-	return \&File::StripNondeterminism::handlers::docbooktoman::normalize if $_ eq 'docbooktoman';
 	return \&File::StripNondeterminism::handlers::gzip::normalize if $_ eq 'gzip';
 	return \&File::StripNondeterminism::handlers::jar::normalize if $_ eq 'jar';
 	return \&File::StripNondeterminism::handlers::javadoc::normalize if $_ eq 'javadoc';
diff --git a/t/docbooktoman.t b/t/docbooktoman.t
deleted file mode 100644
index 8072c42..0000000
--- a/t/docbooktoman.t
+++ /dev/null
@@ -1,51 +0,0 @@
-#!perl
-
-#
-# Copyright 2015 Chris Lamb <lamby at debian.org>
-#
-# This file is part of strip-nondeterminism.
-#
-# strip-nondeterminism is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# strip-nondeterminism is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with strip-nondeterminism.  If not, see <http://www.gnu.org/licenses/>.
-#
-
-use File::Temp 'tempdir';
-use Test::More tests => 2;
-use File::StripNondeterminism;
-
-$dir = tempdir( CLEANUP => 1 );
-$path = "$dir/connect-proxy.1";
-
-open(my $fh, '>', $path) or die("error opening $path");
-print $fh <<'EOF';
-.TH "CONNECT-PROXY" "1" 
-.SH "NAME" 
-connect-proxy \(em connect over SOCKS4/5 proxy 
- 
-.\" created by instant / docbook-to-man, Sat 24 Jan 2015, 11:43 
-EOF
-close $fh;
-
-$normalizer = File::StripNondeterminism::get_normalizer_for_file($path);
-isnt(undef, $normalizer);
-$normalizer->($path);
-
-open FILE,$path or die("error opening $path");
-local $/ = undef;
-is(<FILE>, <<'EOF');
-.TH "CONNECT-PROXY" "1" 
-.SH "NAME" 
-connect-proxy \(em connect over SOCKS4/5 proxy 
- 
-.\" created by instant / docbook-to-man, Thu 01 Jan 1970, 00:00
-EOF

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



More information about the Reproducible-commits mailing list