[Pkg-ocaml-maint-commits] [dh-ocaml] 01/07: Deterministic order in generated .info files (Closes: #779037)

Stéphane Glondu glondu at moszumanska.debian.org
Wed Aug 12 14:47:14 UTC 2015


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

glondu pushed a commit to branch master
in repository dh-ocaml.

commit ebc6fa4f7042343dd13acfe9d66364948916b5fb
Author: Stephane Glondu <steph at glondu.net>
Date:   Wed Aug 12 14:20:22 2015 +0200

    Deterministic order in generated .info files (Closes: #779037)
    
    Patch by Chris Lamb.
---
 debhelper/dh_ocaml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/debhelper/dh_ocaml b/debhelper/dh_ocaml
index de4535b..05b1981 100755
--- a/debhelper/dh_ocaml
+++ b/debhelper/dh_ocaml
@@ -353,7 +353,7 @@ foreach my $package (keys(%dev_packages), @binary_packages)
 
     # Search for OCaml bytecode binaries and objects
     open(OLIST, ">", $olist_fn) unless $dh{NO_ACT};
-    find sub {
+    find {'wanted' => sub {
         (-f $_)
         &&
         (-x $_ && test_bytecode($_) || /\.cm([iaox]|x[as])$/)
@@ -363,6 +363,10 @@ foreach my $package (keys(%dev_packages), @binary_packages)
         (!$dh{NO_ACT})
         &&
         (print OLIST $File::Find::name."\n")
+      },
+      'preprocess' => sub {
+        return sort @_;
+      }
     }, @search_path;
     close(OLIST) unless $dh{NO_ACT};
     doit("cat $olist_fn") if $dh{VERBOSE};

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/dh-ocaml.git



More information about the Pkg-ocaml-maint-commits mailing list