summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2013-11-25 12:41:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-25 13:02:14 +0000
commit7c94ca56b2fd85a989089f58b3dcce3172a778f2 (patch)
treeac2379f762d41bf9e7691c11b5848daba7081794
parente0a2e9699e9f338dd7ade8c9eef0a12c7639ec05 (diff)
downloadbitbake-7c94ca56b2fd85a989089f58b3dcce3172a778f2.tar.gz
fetch2: Correct a few calls to latest_revision()
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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/bzr.py2
-rw-r--r--lib/bb/fetch2/hg.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/fetch2/bzr.py b/lib/bb/fetch2/bzr.py
index 3caaa6fca..03e9ac461 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/hg.py b/lib/bb/fetch2/hg.py
index 76810abb7..6927f6111 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)