metadata_scm: Replace deprecated operator

The <> operator is deprecated, use != instead which is equivalent.

(From OE-Core rev: dde7af5f6c769eae721b1ee18462b841c8ea3277)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2013-05-07 13:56:02 +01:00
parent 9ebcb98121
commit caa8b29c77
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ def base_detect_revision(d):
for scm in scms:
rev = scm(path, d)
if rev <> "<unknown>":
if rev != "<unknown>":
return rev
return "<unknown>"
@ -21,7 +21,7 @@ def base_detect_branch(d):
for scm in scms:
rev = scm(path, d)
if rev <> "<unknown>":
if rev != "<unknown>":
return rev.strip()
return "<unknown>"