found 965255 0.17
thanks

Hi,

> The ordering is non-deterministic due to the main dh_fortran_mod
> script iterates over a Perl dictionary in key order.

… which I did not implement correctly, apologies. An updated patch is
attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/dh_fortran_mod.in b/dh_fortran_mod.in
index 79f5b3f..34df0e3 100755
--- a/dh_fortran_mod.in
+++ b/dh_fortran_mod.in
@@ -388,16 +388,16 @@ foreach my $package (getpackages()) {
     keys %modversions;
 
     if ($config) { # config file defined, so create scripts
-       while (my($compiler,$fcompilermod) = sort each %modversions) {
+       foreach my $compiler (sort keys %modversions) {
            my $lnk=`readlink -f /usr/bin/$compiler`;
            my $canoncomp=`basename $lnk`;
            chomp $canoncomp;
            autoscript($package, 'preinst', 'preinst-fortran-mod', { 
'MULTIARCH' => $multiarch,
-                                                                        
'FCOMPILERMOD' => $fcompilermod,
+                                                                        
'FCOMPILERMOD' => $modversions{$compiler},
                                                                         
'FCOMPILER' => $compiler,
                                                                         
'FCANONICAL' => $canoncomp});
            autoscript($package, 'postrm', 'postrm-fortran-mod', { 'MULTIARCH' 
=> $multiarch,
-                                                                      
'FCOMPILERMOD' => $fcompilermod,
+                                                                      
'FCOMPILERMOD' => $modversions{$compiler},
                                                                       
'FCOMPILER' => $compiler,
                                                                       
'FCANONICAL' => $canoncomp });
        }
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to