summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/osc.py
diff options
context:
space:
mode:
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)