RRS: handle when recipes get deleted and later re-added

We need to capture the re-addition properly or the recipe simply won't
show up in the recipe list. Examples from meta-oe:

* psqlodbc removed in ec9e5ed06256ad92c818474cdb490dc0d3a0d0a3 and
  added back in 16a6fee6c0455863ed5df15afc49efe8cc617d9c
* libgxim removed in 5dd01c5175f518658d8ee5627ede4f593111b872 and
  added back in af602920594a9cc2e9b397fe311fda7f531be7f3

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2019-09-03 16:33:03 +12:00
parent effd76af7d
commit 20a420ec9c

View File

@ -254,7 +254,7 @@ def _create_upgrade(recipe_data, layerbranch, ct, title, info, filepath, logger,
if npv == 'git':
logger.debug("%s: Avoiding upgrade to unversioned git." % pn)
elif ppv == 'git' or vercmp_result != 0:
elif ppv == 'git' or vercmp_result != 0 or latest_upgrade.upgrade_type == 'R':
if initial is True:
logger.debug("%s: Update initial upgrade ( -> %s)." % \
(pn, pv))