diff options
author | Javier Martin <javier.martin@vista-silicon.com> | 2011-01-27 09:38:21 +0100 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-02-09 12:44:36 -0700 |
commit | f30b3af975a071d1584817054a2996f08a3aba4f (patch) | |
tree | 154ce7c74ea03ec63056712c889b7215437c9893 /lib/bb/fetch/__init__.py | |
parent | e4db09fd123100960f2e7c0a5a228d13010d11d8 (diff) | |
download | bitbake-f30b3af975a071d1584817054a2996f08a3aba4f.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.
Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/fetch/__init__.py')
-rw-r--r-- | lib/bb/fetch/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py index d87ff0aaf..62ba4ea63 100644 --- a/lib/bb/fetch/__init__.py +++ b/lib/bb/fetch/__init__.py @@ -699,7 +699,7 @@ class Fetch(object): raise InvalidSRCREV("Please set SRCREV to a valid value") if not rev: return False - if rev is "SRCREVINACTION": + if rev == "SRCREVINACTION": return True return rev |