Patchwork [bitbake-devel] fetch2: Correct a few calls to latest_revision()

login
register
mail settings
Submitter Peter Kjellerstedt
Date Nov. 25, 2013, 11:41 a.m.
Message ID <1385379676-19838-1-git-send-email-pkj@axis.com>
Download mbox | patch
Permalink /patch/62281/
State New
Headers show

Comments

Peter Kjellerstedt - Nov. 25, 2013, 11:41 a.m.
In 6a48474de9505a3700863f31839a7c53c5e18a8d the url parameter to a
number of functions was removed. However, not all calls to
latest_revision() were fixed...

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 lib/bb/fetch2/bzr.py | 2 +-
 lib/bb/fetch2/git.py | 2 +-
 lib/bb/fetch2/hg.py  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/lib/bb/fetch2/bzr.py b/lib/bb/fetch2/bzr.py
index 3caaa6f..03e9ac4 100644
--- a/lib/bb/fetch2/bzr.py
+++ b/lib/bb/fetch2/bzr.py
@@ -48,7 +48,7 @@  class Bzr(FetchMethod):
         ud.setup_revisons(d)
 
         if not ud.revision:
-            ud.revision = self.latest_revision(ud.url, ud, d)
+            ud.revision = self.latest_revision(ud, d)
 
         ud.localfile = data.expand('bzr_%s_%s_%s.tar.gz' % (ud.host, ud.path.replace('/', '.'), ud.revision), d)
 
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index b236631..a9470e4 100644
--- a/lib/bb/fetch2/git.py
+++ b/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
diff --git a/lib/bb/fetch2/hg.py b/lib/bb/fetch2/hg.py
index 76810ab..6927f61 100644
--- a/lib/bb/fetch2/hg.py
+++ b/lib/bb/fetch2/hg.py
@@ -62,7 +62,7 @@  class Hg(FetchMethod):
         if 'rev' in ud.parm:
             ud.revision = ud.parm['rev']
         elif not ud.revision:
-            ud.revision = self.latest_revision(ud.url, ud, d)
+            ud.revision = self.latest_revision(ud, d)
 
         ud.localfile = data.expand('%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision), d)