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