diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2015-07-09 18:15:43 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-12 22:55:45 +0100 |
commit | 75c877b3cc451e8d8a4e881d1683d2fe8cd037f2 (patch) | |
tree | 7079d713d66cf3f6618faf0b38192096a1fe5fee /meta/lib | |
parent | 5d0f8a6db951844e4fd997baa89a459e40159760 (diff) | |
download | poky-75c877b3cc451e8d8a4e881d1683d2fe8cd037f2.tar.gz |
oe/recipeutils.py: get_recipe_upstream_version returns 1.0 when not SRC_URI
Recipes that don't have SRC_URI means that don't use upstream sources
so returns 1.0.
(From OE-Core rev: 92f2481cf88e7b626cfe604134c9d020d06bd32c)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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) |