]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool: update-recipe: add new patches in correct order
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 23 Sep 2015 12:04:29 +0000 (15:04 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Sep 2015 14:15:47 +0000 (15:15 +0100)
When adding multiple new patches append them to SRC_URI in correct order
so that they apply correctly.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
scripts/lib/devtool/standard.py

index 1dcf7cdf0749fb108a1c605ee8d6c5f35edf7539..01d7b8cf81050292247ab4dcfd0df721b8cca353 100644 (file)
@@ -701,7 +701,7 @@ def _update_recipe_patch(args, config, srctree, rd, config_data):
         updatepatches = False
         updaterecipe = False
         destpath = None
-        newpatches = os.listdir(tempdir)
+        newpatches = sorted(os.listdir(tempdir))
         if args.append:
             patchfiles = {}
             for patch in existing_patches: