diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/recipeutils.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 78d69267ac..16530ee179 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py | |||
@@ -708,14 +708,21 @@ def get_recipe_upstream_version(rd): | |||
708 | if uri_type == 'git': | 708 | if uri_type == 'git': |
709 | (pv, pfx, sfx) = get_recipe_pv_without_srcpv(pv, uri_type) | 709 | (pv, pfx, sfx) = get_recipe_pv_without_srcpv(pv, uri_type) |
710 | 710 | ||
711 | latest_revision = ud.method.latest_revision(ud, rd, ud.names[0]) | 711 | revision = ud.method.latest_revision(ud, rd, ud.names[0]) |
712 | 712 | ||
713 | # if contains revision but not pupver use current pv | 713 | # if contains revision but not pupver use current pv |
714 | if pupver == '' and latest_revision: | 714 | if pupver == '' and revision: |
715 | pupver = pv | 715 | pupver = pv |
716 | 716 | ||
717 | if pupver != '': | 717 | if pupver != '': |
718 | pupver = pfx + pupver + sfx + latest_revision[:10] | 718 | tmp = pupver |
719 | pupver = '' | ||
720 | |||
721 | if pfx: | ||
722 | pupver = pfx | ||
723 | pupver = pupver + tmp | ||
724 | if sfx: | ||
725 | pupver = pupver + sfx + revision[:10] | ||
719 | 726 | ||
720 | if pupver != '': | 727 | if pupver != '': |
721 | ru['version'] = pupver | 728 | ru['version'] = pupver |