devtool: update-recipe: add new patches in correct order

When adding multiple new patches append them to SRC_URI in correct order
so that they apply correctly.

(From OE-Core rev: 819680092c1b49c16f4ab01d135d44311a9dacca)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Markus Lehtonen
2015-09-23 15:04:29 +03:00
committed by Richard Purdie
parent 2f8440b9ae
commit c976028529

View 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: