compat-drivers: do not apply patches in natural sort order
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 29 Nov 2012 15:24:41 +0000 (16:24 +0100)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Thu, 29 Nov 2012 21:20:58 +0000 (13:20 -0800)
Without this patch the patches are applied in the natural sort order of
numbers, which caused this order for patches/network/:
patches/network/0001-netdev_ops.patch
patches/network/02-ksize.patch
patches/network/0002-net-misc.patch
patches/network/0003-netdev-needed_headroom_tailroom.patch
patches/network/03-rfkill.patch
patches/network/04-netns.patch
patches/network/0004-wext-namespace.patch
patches/network/0005-netlink-portid.patch
patches/network/05-usb.patch

The non natural sort order of numbers is more the intended way to order
the patches as now the spdiff patches are in front of all the other
patches. This makes the patches in patches/network/ to be applied in
the flowing order:
patches/network/0001-netdev_ops.patch
patches/network/0002-net-misc.patch
patches/network/0003-netdev-needed_headroom_tailroom.patch
patches/network/0004-wext-namespace.patch
patches/network/0005-netlink-portid.patch
patches/network/02-ksize.patch
patches/network/03-rfkill.patch
patches/network/04-netns.patch
patches/network/05-usb.patch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
scripts/admin-update.sh

index cdc5ce56d2ed60aee9a7ed875f1e9d3c0ef336bf..f05081a4150b0ee26dc86ddafcb2d92dbab19815 100755 (executable)
@@ -699,7 +699,7 @@ for subsystem in $SUBSYSTEMS; do
                        continue
                fi
 
-               for i in $(ls -v $PATCHDIR/*.patch); do
+               for i in $(ls $PATCHDIR/*.patch); do
                        echo -e "${GREEN}Applying backport patch${NORMAL}: ${BLUE}$i${NORMAL}"
                        patch -p1 -N -t < $i
                        RET=$?