diff options
author | Niko Tyni <ntyni@debian.org> | 2015-10-12 15:05:06 +0300 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2015-11-06 21:58:43 +0100 |
commit | 9cedfeafe98e5c4c09e6ba96ecce2e889c1f432a (patch) | |
tree | 79023d74417fe6719ec3555cc6120932b9d673ec /dh_installexamples | |
parent | f2aebbf75fe10f45e8baf5c7ac370de06a1ff9e6 (diff) |
dh_install*: sort file lists passed to 'cp --parents -p' for reproducibility
The order in which the files are copied can affect directory
timestamps when copying subdirectory hierarchies.
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installexamples')
-rwxr-xr-x | dh_installexamples | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dh_installexamples b/dh_installexamples index 9ec69145..7b287766 100755 --- a/dh_installexamples +++ b/dh_installexamples @@ -98,7 +98,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) { chomp $pwd; my $exclude2 = '-type f'.$exclude; complex_doit("cd '$dir' && " . - "find '$basename' -type f$exclude -print0 | xargs -0 -I {} cp --reflink=auto --parents -dp {} $pwd/$tmp/usr/share/doc/$package/examples"); + "find '$basename' -type f$exclude -print0 | LC_ALL=C sort -z | " . + "xargs -0 -I {} cp --reflink=auto --parents -dp {} $pwd/$tmp/usr/share/doc/$package/examples"); } else { doit("cp", '--reflink=auto', "-a", $example, |