mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
devtool: upgrade: reformat --no-patch warning message
* Only log one warning message instead of one per line * Be a bit more verbose * "if list" is more pythonic than "if len(list)" (From OE-Core rev: 2d11e9e6e73648c1cb514c0c10111c7886acae78) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
fcb84383ce
commit
46a3662d4e
@@ -263,10 +263,8 @@ def _extract_new_source(newpv, srctree, no_patch, srcrev, srcbranch, branch, kee
|
||||
|
||||
if no_patch:
|
||||
patches = oe.recipeutils.get_recipe_patches(crd)
|
||||
if len(patches):
|
||||
logger.warn('By user choice, the following patches will NOT be applied')
|
||||
for patch in patches:
|
||||
logger.warn("%s" % os.path.basename(patch))
|
||||
if patches:
|
||||
logger.warn('By user choice, the following patches will NOT be applied to the new source tree:\n %s' % '\n '.join([os.path.basename(patch) for patch in patches]))
|
||||
else:
|
||||
__run('git checkout devtool-patched -b %s' % branch)
|
||||
skiptag = False
|
||||
|
||||
Reference in New Issue
Block a user