aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-04-06 17:25:16 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-04-06 17:33:31 +0100
commit1d77dca3b32dd883bcc2213675cf21111ac1beca (patch)
treed71eaccf2d8f2a8e537073b184b3976820398666
parent76f55e3c3f32dea63a385e9b3c8eaed1322089c7 (diff)
downloadupstream-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>
-rwxr-xr-xscripts/ipkg-build2
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