From 67fac77e10269099796a6bd03ddaf1580949a4b8 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 8 Mar 2011 12:07:24 -0700 Subject: Fix more incorrect usages of 'is' (Bitbake rev: a26a2f548419af0e971ad21ec0a29e5245fe307f) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/hg.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bitbake/lib/bb/fetch2/hg.py') diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py index 35a4b3c30a..f2719d4f9e 100644 --- a/bitbake/lib/bb/fetch2/hg.py +++ b/bitbake/lib/bb/fetch2/hg.py @@ -92,21 +92,21 @@ class Hg(FetchMethod): else: hgroot = ud.user + "@" + host + ud.path - if command is "info": + if command == "info": return "%s identify -i %s://%s/%s" % (basecmd, proto, hgroot, ud.module) options = []; if ud.revision: options.append("-r %s" % ud.revision) - if command is "fetch": + if command == "fetch": cmd = "%s clone %s %s://%s/%s %s" % (basecmd, " ".join(options), proto, hgroot, ud.module, ud.module) - elif command is "pull": + elif command == "pull": # do not pass options list; limiting pull to rev causes the local # repo not to contain it and immediately following "update" command # will crash cmd = "%s pull" % (basecmd) - elif command is "update": + elif command == "update": cmd = "%s update -C %s" % (basecmd, " ".join(options)) else: raise FetchError("Invalid hg command %s" % command, ud.url) -- cgit v1.2.3-54-g00ecf