Package: src:isdnutils
Version: 1:3.25+dfsg1-9
Severity: wishlist
Tags: patch pending

For the records: The attached patch makes the creation of dest.cdb
reproducible, thus the entire build. Will be part of the next upload.

    Christoph
Description: CDB_File_Dump: Sort keys when dumping, making the created file reproducible
Author: Christoph Biedl <[email protected]>
Date: 2018-07-28
Forwarded: not-yet

--- a/isdnlog/tools/dest/CDB_File_Dump.pm
+++ b/isdnlog/tools/dest/CDB_File_Dump.pm
@@ -103,9 +103,9 @@
 sub DESTROY {
     my $self = $_[0];
     my $fh = $self->{fh};
-    my ($key, $value);
-    while (($key, $value) = each(%{ $self->{data} })) {
-	print $fh "+",length($key),",",length($value),":",$key,"->",$value,"\n";
+    foreach my $key (sort keys %{ $self->{data} }) {
+        my $value = $self->{data}{$key};
+        print $fh "+",length($key),",",length($value),":",$key,"->",$value,"\n";
     }
 }
 1;

Attachment: signature.asc
Description: PGP signature

Reply via email to