diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-04-06 17:25:16 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-04-06 17:33:31 +0100 |
commit | 1d77dca3b32dd883bcc2213675cf21111ac1beca (patch) | |
tree | d71eaccf2d8f2a8e537073b184b3976820398666 /scripts | |
parent | 76f55e3c3f32dea63a385e9b3c8eaed1322089c7 (diff) | |
download | upstream-1d77dca3b32dd883bcc2213675cf21111ac1beca.tar.gz upstream-1d77dca3b32dd883bcc2213675cf21111ac1beca.tar.bz2 upstream-1d77dca3b32dd883bcc2213675cf21111ac1beca.zip |
scripts: make sure sort-order is independent from locale
Set LC_ALL=C environment variable when calling 'sort' as the sort
order otherwise depends on the locale set.
Fixes: 56ce110b73 ("scripts: make sure conffiles are sorted")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ipkg-build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ipkg-build b/scripts/ipkg-build index 32bc4b6d50..19df621048 100755 --- a/scripts/ipkg-build +++ b/scripts/ipkg-build @@ -58,7 +58,7 @@ pkg_appears_sane() { rm "$CONTROL"/conffiles if [ -f "$CONTROL"/conffiles.resolved ]; then - sort -o "$CONTROL"/conffiles "$CONTROL"/conffiles.resolved + LC_ALL=C sort -o "$CONTROL"/conffiles "$CONTROL"/conffiles.resolved rm "$CONTROL"/conffiles.resolved chmod 0644 "$CONTROL"/conffiles fi |