diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/bzr.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/bzr.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/bzr.py b/bitbake/lib/bb/fetch2/bzr.py index 201705b6ce..04a9087c11 100644 --- a/bitbake/lib/bb/fetch2/bzr.py +++ b/bitbake/lib/bb/fetch2/bzr.py | |||
@@ -64,15 +64,15 @@ class Bzr(FetchMethod): | |||
64 | 64 | ||
65 | options = [] | 65 | options = [] |
66 | 66 | ||
67 | if command is "revno": | 67 | if command == "revno": |
68 | bzrcmd = "%s revno %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot) | 68 | bzrcmd = "%s revno %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot) |
69 | else: | 69 | else: |
70 | if ud.revision: | 70 | if ud.revision: |
71 | options.append("-r %s" % ud.revision) | 71 | options.append("-r %s" % ud.revision) |
72 | 72 | ||
73 | if command is "fetch": | 73 | if command == "fetch": |
74 | bzrcmd = "%s co %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot) | 74 | bzrcmd = "%s co %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot) |
75 | elif command is "update": | 75 | elif command == "update": |
76 | bzrcmd = "%s pull %s --overwrite" % (basecmd, " ".join(options)) | 76 | bzrcmd = "%s pull %s --overwrite" % (basecmd, " ".join(options)) |
77 | else: | 77 | else: |
78 | raise FetchError("Invalid bzr command %s" % command, ud.url) | 78 | raise FetchError("Invalid bzr command %s" % command, ud.url) |