summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-08 12:07:24 -0700
committerChris Larson <chris_larson@mentor.com>2011-03-16 07:38:39 -0700
commita26a2f548419af0e971ad21ec0a29e5245fe307f (patch)
tree4cb637769e8716f5eeb9aefc97740eb3414137c7 /lib/bb/fetch
parent8f5cf3a9975d8e6878e403be0e6edc22cc44f396 (diff)
downloadbitbake-a26a2f548419af0e971ad21ec0a29e5245fe307f.tar.gz
Fix more incorrect usages of 'is'
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/fetch')
-rw-r--r--lib/bb/fetch/bzr.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/fetch/bzr.py b/lib/bb/fetch/bzr.py
index 9bde706df..85a92940e 100644
--- a/lib/bb/fetch/bzr.py
+++ b/lib/bb/fetch/bzr.py
@@ -67,15 +67,15 @@ class Bzr(Fetch):
options = []
- if command is "revno":
+ if command == "revno":
bzrcmd = "%s revno %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot)
else:
if ud.revision:
options.append("-r %s" % ud.revision)
- if command is "fetch":
+ if command == "fetch":
bzrcmd = "%s co %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot)
- elif command is "update":
+ elif command == "update":
bzrcmd = "%s pull %s --overwrite" % (basecmd, " ".join(options))
else:
raise FetchError("Invalid bzr command %s" % command)