diff options
author | Jérémy Bobbio <lunar@debian.org> | 2015-01-10 10:11:31 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2015-03-22 18:15:09 +0100 |
commit | 063ea1adce9bc6f815a7aa34198e48eac9df36c3 (patch) | |
tree | a3208925340b883cd0794fe04f8c4914c24f9e8b /dh_usrlocal | |
parent | 3c21f1a007efdb10ce529a342f2630f86ecbb87c (diff) | |
download | debhelper-063ea1adce9bc6f815a7aa34198e48eac9df36c3.tar.gz |
dh_usrlocal: output dir list in a stable order
We now sort the directory lists in order to guarantee a stable output.
This was preventing some packages to build reproducibly.
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_usrlocal')
-rwxr-xr-x | dh_usrlocal | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dh_usrlocal b/dh_usrlocal index 3d5571eb..193d70d9 100755 --- a/dh_usrlocal +++ b/dh_usrlocal @@ -101,9 +101,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) { my $ebs = $bs x 2; # Escape the backslash from the shell # This constructs the body of a 'sed' c\ expression which # is parsed by the shell in double-quotes - my $dirs = join("$ebs\n", @dirs); + my $dirs = join("$ebs\n", sort @dirs); pop @justdirs; # don't remove directories directly in /usr/local - my $justdirs = join("$ebs\n", @justdirs); + my $justdirs = join("$ebs\n", sort @justdirs); if (! $dh{NOSCRIPTS}) { autoscript($package,"postinst", "postinst-usrlocal", "/#DIRS#/ c${ebs}\n${dirs}"); |