diff options
author | Javier Martin <javier.martin@vista-silicon.com> | 2011-01-27 09:38:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-10 22:35:28 +0000 |
commit | aacbe3f35eefd30be7f02ecc69bd141fd1d185ce (patch) | |
tree | f0e31604be2e262e07496ac0294ec475518c9491 /bitbake | |
parent | c68c5f6e31260549265d33da8dee563c574cbf40 (diff) | |
download | poky-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__.py | 2 |
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 | ||