Explorar o código

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 <[email protected]>
Daniel Golle %!s(int64=3) %!d(string=hai) anos
pai
achega
1d77dca3b3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/ipkg-build

+ 1 - 1
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