diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/recipeutils.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index ccec2a1444..bd812ccbd1 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py | |||
@@ -667,8 +667,17 @@ def get_recipe_upstream_version(rd): | |||
667 | ru['type'] = 'U' | 667 | ru['type'] = 'U' |
668 | ru['datetime'] = '' | 668 | ru['datetime'] = '' |
669 | 669 | ||
670 | # XXX: If don't have SRC_URI means that don't have upstream sources so | ||
671 | # returns 1.0. | ||
672 | src_uris = rd.getVar('SRC_URI', True) | ||
673 | if not src_uris: | ||
674 | ru['version'] = '1.0' | ||
675 | ru['type'] = 'M' | ||
676 | ru['datetime'] = datetime.now() | ||
677 | return ru | ||
678 | |||
670 | # XXX: we suppose that the first entry points to the upstream sources | 679 | # XXX: we suppose that the first entry points to the upstream sources |
671 | src_uri = rd.getVar('SRC_URI', True).split()[0] | 680 | src_uri = src_uris.split()[0] |
672 | uri_type, _, _, _, _, _ = decodeurl(src_uri) | 681 | uri_type, _, _, _, _, _ = decodeurl(src_uri) |
673 | 682 | ||
674 | pv = rd.getVar('PV', True) | 683 | pv = rd.getVar('PV', True) |