summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJavier Martin <javier.martin@vista-silicon.com>2011-01-27 09:38:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-10 22:35:28 +0000
commitaacbe3f35eefd30be7f02ecc69bd141fd1d185ce (patch)
treef0e31604be2e262e07496ac0294ec475518c9491 /bitbake
parentc68c5f6e31260549265d33da8dee563c574cbf40 (diff)
downloadpoky-aacbe3f35eefd30be7f02ecc69bd141fd1d185ce.tar.gz
Fix comparison with SRCREVINACTION constant
Use '==' instead of 'is', otherwise it will always return true since 'rev' and "SRCREVINACTION" are not the same object. (Bitbake rev: f30b3af975a071d1584817054a2996f08a3aba4f) Signed-off-by: Javier Martin <javier.martin@vista-silicon.com> Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index b452751c7b..65b4da07da 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -704,7 +704,7 @@ class Fetch(object):
704 raise InvalidSRCREV("Please set SRCREV to a valid value") 704 raise InvalidSRCREV("Please set SRCREV to a valid value")
705 if not rev: 705 if not rev:
706 return False 706 return False
707 if rev is "SRCREVINACTION": 707 if rev == "SRCREVINACTION":
708 return True 708 return True
709 return rev 709 return rev
710 710