summaryrefslogtreecommitdiffstats
path: root/meta/classes/metadata_scm.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-07 13:56:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 14:06:51 +0100
commitcaa8b29c770a78e1d0a70cbe46696856d5ef7ec8 (patch)
treefe7219c6b0d8c56cdf91650ad5e8a8541ed8dad8 /meta/classes/metadata_scm.bbclass
parent9ebcb981214f53f67036b35f088aee7599b7d8c4 (diff)
downloadpoky-caa8b29c770a78e1d0a70cbe46696856d5ef7ec8.tar.gz
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>
Diffstat (limited to 'meta/classes/metadata_scm.bbclass')
-rw-r--r--meta/classes/metadata_scm.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/metadata_scm.bbclass b/meta/classes/metadata_scm.bbclass
index 502d400cbb..e9b207c24f 100644
--- a/meta/classes/metadata_scm.bbclass
+++ b/meta/classes/metadata_scm.bbclass
@@ -9,7 +9,7 @@ def base_detect_revision(d):
9 9
10 for scm in scms: 10 for scm in scms:
11 rev = scm(path, d) 11 rev = scm(path, d)
12 if rev <> "<unknown>": 12 if rev != "<unknown>":
13 return rev 13 return rev
14 14
15 return "<unknown>" 15 return "<unknown>"
@@ -21,7 +21,7 @@ def base_detect_branch(d):
21 21
22 for scm in scms: 22 for scm in scms:
23 rev = scm(path, d) 23 rev = scm(path, d)
24 if rev <> "<unknown>": 24 if rev != "<unknown>":
25 return rev.strip() 25 return rev.strip()
26 26
27 return "<unknown>" 27 return "<unknown>"