Patchwork [bitbake-devel] Change call to latest_revision() to match parameters in function definition.

login
register
mail settings
Submitter Nick D'Ademo
Date Nov. 25, 2013, 7:26 a.m.
Message ID <1385364371-16092-1-git-send-email-nickdademo@gmail.com>
Download mbox | patch
Permalink /patch/62629/
State New
Headers show

Comments

Nick D'Ademo - Nov. 25, 2013, 7:26 a.m.
This fixes the "latest_revision() takes exactly 4 arguments (5 given)" Python TypeError which occurs when attempting to fetch via SSH.

Signed-off-by: Nick D'Ademo <nickdademo@gmail.com>
---
 bitbake/lib/bb/fetch2/git.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index b236631..a9470e4 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -125,7 +125,7 @@  class Git(FetchMethod):
             if not ud.revisions[name] or len(ud.revisions[name]) != 40  or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]):
                 if ud.revisions[name]:
                     ud.branches[name] = ud.revisions[name]
-                ud.revisions[name] = self.latest_revision(ud.url, ud, d, name)
+                ud.revisions[name] = self.latest_revision(ud, d, name)
 
         gitsrcname = '%s%s' % (ud.host.replace(':','.'), ud.path.replace('/', '.').replace('*', '.'))
         # for rebaseable git repo, it is necessary to keep mirror tar ball