diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-03-08 12:07:24 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-31 12:23:23 +0100 |
commit | 67fac77e10269099796a6bd03ddaf1580949a4b8 (patch) | |
tree | ecad8654411a5954483843ea76ad626b9ee27029 /bitbake/lib/bb/fetch2/svn.py | |
parent | 626b96e255b6461e2bce209ecfc1ff110f65d54e (diff) | |
download | poky-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/svn.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/svn.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/svn.py b/bitbake/lib/bb/fetch2/svn.py index 607bdd0cd4..fa6c654d3e 100644 --- a/bitbake/lib/bb/fetch2/svn.py +++ b/bitbake/lib/bb/fetch2/svn.py | |||
@@ -85,7 +85,7 @@ class Svn(FetchMethod): | |||
85 | if ud.pswd: | 85 | if ud.pswd: |
86 | options.append("--password %s" % ud.pswd) | 86 | options.append("--password %s" % ud.pswd) |
87 | 87 | ||
88 | if command is "info": | 88 | if command == "info": |
89 | svncmd = "%s info %s %s://%s/%s/" % (basecmd, " ".join(options), proto, svnroot, ud.module) | 89 | svncmd = "%s info %s %s://%s/%s/" % (basecmd, " ".join(options), proto, svnroot, ud.module) |
90 | else: | 90 | else: |
91 | suffix = "" | 91 | suffix = "" |
@@ -93,9 +93,9 @@ class Svn(FetchMethod): | |||
93 | options.append("-r %s" % ud.revision) | 93 | options.append("-r %s" % ud.revision) |
94 | suffix = "@%s" % (ud.revision) | 94 | suffix = "@%s" % (ud.revision) |
95 | 95 | ||
96 | if command is "fetch": | 96 | if command == "fetch": |
97 | svncmd = "%s co %s %s://%s/%s%s %s" % (basecmd, " ".join(options), proto, svnroot, ud.module, suffix, ud.module) | 97 | svncmd = "%s co %s %s://%s/%s%s %s" % (basecmd, " ".join(options), proto, svnroot, ud.module, suffix, ud.module) |
98 | elif command is "update": | 98 | elif command == "update": |
99 | svncmd = "%s update %s" % (basecmd, " ".join(options)) | 99 | svncmd = "%s update %s" % (basecmd, " ".join(options)) |
100 | else: | 100 | else: |
101 | raise FetchError("Invalid svn command %s" % command, ud.url) | 101 | raise FetchError("Invalid svn command %s" % command, ud.url) |