Browse Source

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>
Javier Martin 13 years ago
parent
commit
f30b3af975
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/bb/fetch/__init__.py

+ 1 - 1
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