1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-13 10:49:13 +02:00

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>
This commit is contained in:
Daniel Golle 2022-04-06 17:25:16 +01:00
parent 76f55e3c3f
commit 1d77dca3b3
No known key found for this signature in database
GPG Key ID: 5A8F39C31C3217CA

View File

@ -58,7 +58,7 @@ pkg_appears_sane() {
rm "$CONTROL"/conffiles rm "$CONTROL"/conffiles
if [ -f "$CONTROL"/conffiles.resolved ]; then 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 rm "$CONTROL"/conffiles.resolved
chmod 0644 "$CONTROL"/conffiles chmod 0644 "$CONTROL"/conffiles
fi fi