diff mbox series

[1/2,meta-swupdate] Revert "Use backward compatible syntax for `getVar()`"

Message ID 1519228732-20082-1-git-send-email-sbabic@denx.de
State Accepted
Headers show
Series [1/2,meta-swupdate] Revert "Use backward compatible syntax for `getVar()`" | expand

Commit Message

Stefano Babic Feb. 21, 2018, 3:58 p.m. UTC
This reverts commit d9b64419578fba2a459badd95660b7e83fcc49e4.

The git version cannot be selected after applying this patch.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 recipes-support/swupdate/swupdate_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/recipes-support/swupdate/swupdate_git.bb b/recipes-support/swupdate/swupdate_git.bb
index d23b965..4fc15ad 100644
--- a/recipes-support/swupdate/swupdate_git.bb
+++ b/recipes-support/swupdate/swupdate_git.bb
@@ -11,9 +11,9 @@  DEFAULT_PREFERENCE = "-1"
 # In casethe _git version is chosen, sets the revision
 # to TOT to test with last commit-id.
 def version_git(d):
-    version = d.getVar("PREFERRED_VERSION_%s" % d.getVar('PN', False), False)
+    version = d.getVar("PREFERRED_VERSION_%s" % d.getVar('PN'))
     if version is not None and "git" in version:
-        return d.getVar('AUTOREV', False)
+        return d.getVar("AUTOREV")
     else:
         return "c0fec16b3fc82b0db12d8ac58be7055ed1b8d439"