Patchwork [10/15] metadata_scm: Replace depracated operator

login
register
mail settings
Submitter Richard Purdie
Date May 7, 2013, 12:56 p.m.
Message ID <1367931368-21504-10-git-send-email-richard.purdie@linuxfoundation.org>
Download mbox | patch
Permalink /patch/49469/
State Accepted
Commit dde7af5f6c769eae721b1ee18462b841c8ea3277
Headers show

Comments

Richard Purdie - May 7, 2013, 12:56 p.m.
The <> operator is depracted, use != instead which is equavalent.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes/metadata_scm.bbclass |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Phil Blundell - May 7, 2013, 1:11 p.m.
On Tue, 2013-05-07 at 13:56 +0100, Richard Purdie wrote:
> The <> operator is depracted, use != instead which is equavalent.

typos: "deprecated" (both long and short messages) and "equivalent"

p.

Patch

diff --git a/meta/classes/metadata_scm.bbclass b/meta/classes/metadata_scm.bbclass
index 502d400..e9b207c 100644
--- a/meta/classes/metadata_scm.bbclass
+++ b/meta/classes/metadata_scm.bbclass
@@ -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>"