Skip to content

Commit

Permalink
scripts: make sure sort-order is independent from locale
Browse files Browse the repository at this point in the history
Set LC_ALL=C environment variable when calling 'sort' as the sort
order otherwise depends on the locale set.

Fixes: 56ce110 ("scripts: make sure conffiles are sorted")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  • Loading branch information
dangowrt committed Apr 6, 2022
1 parent 76f55e3 commit 1d77dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ipkg-build
Expand Up @@ -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
Expand Down

0 comments on commit 1d77dca

Please sign in to comment.