Bläddra i källkod

Revert "Use backward compatible syntax for `getVar()`"

This reverts commit d9b64419578fba2a459badd95660b7e83fcc49e4.

The git version cannot be selected after applying this patch.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Stefano Babic 7 år sedan
förälder
incheckning
721fcc89c5
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      recipes-support/swupdate/swupdate_git.bb

+ 2 - 2
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"