mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
rrs/views.py: Now if a recipe have history but not upstream info set to Unknown state.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
parent
e2ca17d4b5
commit
2fa3009663
17
rrs/views.py
17
rrs/views.py
|
@ -128,13 +128,23 @@ def _get_recipe_list(milestone):
|
||||||
|
|
||||||
version = rup.version
|
version = rup.version
|
||||||
|
|
||||||
|
upstream_version = ''
|
||||||
|
upstream_status = ''
|
||||||
|
if recipe_upstream_history:
|
||||||
recipe_upstream = RecipeUpstream.get_by_recipe_and_history(
|
recipe_upstream = RecipeUpstream.get_by_recipe_and_history(
|
||||||
recipe, recipe_upstream_history)
|
recipe, recipe_upstream_history)
|
||||||
|
|
||||||
if recipe_upstream is None:
|
if recipe_upstream is None:
|
||||||
upstream_status = ''
|
recipe_upstream = RecipeUpstream()
|
||||||
upstream_version = ''
|
recipe_upstream.history = recipe_upstream_history
|
||||||
else:
|
recipe_upstream.recipe = recipe
|
||||||
|
recipe_upstream.version = ''
|
||||||
|
recipe_upstream.type = 'M' # Manual
|
||||||
|
recipe_upstream.status = 'U' # Unknown
|
||||||
|
recipe_upstream.no_update_reason = ''
|
||||||
|
recipe_upstream.date = recipe_upstream_history.end_date
|
||||||
|
recipe_upstream.save()
|
||||||
|
|
||||||
if recipe_upstream.status == 'N' and recipe_upstream.no_update_reason:
|
if recipe_upstream.status == 'N' and recipe_upstream.no_update_reason:
|
||||||
recipe_upstream.status = 'C'
|
recipe_upstream.status = 'C'
|
||||||
upstream_status = \
|
upstream_status = \
|
||||||
|
@ -142,7 +152,6 @@ def _get_recipe_list(milestone):
|
||||||
recipe_upstream.status]
|
recipe_upstream.status]
|
||||||
if upstream_status == 'Downgrade':
|
if upstream_status == 'Downgrade':
|
||||||
upstream_status = 'Unknown' # Downgrade is displayed as Unknown
|
upstream_status = 'Unknown' # Downgrade is displayed as Unknown
|
||||||
|
|
||||||
upstream_version = recipe_upstream.version
|
upstream_version = recipe_upstream.version
|
||||||
|
|
||||||
maintainer = RecipeMaintainer.get_maintainer_by_recipe_and_history(
|
maintainer = RecipeMaintainer.get_maintainer_by_recipe_and_history(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user