summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/osc.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-08 12:07:24 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-31 12:23:23 +0100
commit67fac77e10269099796a6bd03ddaf1580949a4b8 (patch)
treeecad8654411a5954483843ea76ad626b9ee27029 /bitbake/lib/bb/fetch2/osc.py
parent626b96e255b6461e2bce209ecfc1ff110f65d54e (diff)
downloadpoky-67fac77e10269099796a6bd03ddaf1580949a4b8.tar.gz
Fix more incorrect usages of 'is'
(Bitbake rev: a26a2f548419af0e971ad21ec0a29e5245fe307f) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/osc.py')
-rw-r--r--bitbake/lib/bb/fetch2/osc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/osc.py b/bitbake/lib/bb/fetch2/osc.py
index 7c4c90c715..a16a53e544 100644
--- a/bitbake/lib/bb/fetch2/osc.py
+++ b/bitbake/lib/bb/fetch2/osc.py
@@ -68,9 +68,9 @@ class Osc(FetchMethod):
68 68
69 coroot = self._strip_leading_slashes(ud.path) 69 coroot = self._strip_leading_slashes(ud.path)
70 70
71 if command is "fetch": 71 if command == "fetch":
72 osccmd = "%s %s co %s/%s %s" % (basecmd, config, coroot, ud.module, " ".join(options)) 72 osccmd = "%s %s co %s/%s %s" % (basecmd, config, coroot, ud.module, " ".join(options))
73 elif command is "update": 73 elif command == "update":
74 osccmd = "%s %s up %s" % (basecmd, config, " ".join(options)) 74 osccmd = "%s %s up %s" % (basecmd, config, " ".join(options))
75 else: 75 else:
76 raise FetchError("Invalid osc command %s" % command, ud.url) 76 raise FetchError("Invalid osc command %s" % command, ud.url)