From 7c94ca56b2fd85a989089f58b3dcce3172a778f2 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Mon, 25 Nov 2013 12:41:16 +0100 Subject: [PATCH] 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 Signed-off-by: Richard Purdie --- lib/bb/fetch2/bzr.py | 2 +- lib/bb/fetch2/hg.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bb/fetch2/bzr.py b/lib/bb/fetch2/bzr.py index 3caaa6fca92..03e9ac461ba 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 76810abb7dd..6927f6111ed 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) -- 2.47.3