浏览代码

apply-patches.sh: ensure a fixed (and simple) sorting order is used

So we always apply patches in the samme order.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard 12 年之前
父节点
当前提交
15ceab14b4
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      support/scripts/apply-patches.sh

+ 3 - 0
support/scripts/apply-patches.sh

@@ -34,6 +34,9 @@ patchdir=${2-../kernel-patches}
 shift 2
 shift 2
 patchpattern=${@-*}
 patchpattern=${@-*}
 
 
+# use a well defined sorting order
+export LC_COLLATE=C
+
 if [ ! -d "${builddir}" ] ; then
 if [ ! -d "${builddir}" ] ; then
     echo "Aborting.  '${builddir}' is not a directory."
     echo "Aborting.  '${builddir}' is not a directory."
     exit 1
     exit 1