From 12112102dd2808534505d4bfbb171904794428c2 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 20 Apr 2011 02:13:23 +0100 Subject: bitbake/fetch2: Fix the problems introduced by the git fetcher AUTOREV fix The ordering constrains on the urldata_init functions are not straight forward. To avoid further problems, create a helper function to setup the source revisions which the init functions can all at the appropriate point. (From Poky rev: c4371138f7444ecaa1fdd2b1ee4949fbc819f886) Signed-off-by: Richard Purdie --- lib/bb/fetch2/hg.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/bb/fetch2/hg.py') diff --git a/lib/bb/fetch2/hg.py b/lib/bb/fetch2/hg.py index f2719d4f9..793831ae0 100644 --- a/lib/bb/fetch2/hg.py +++ b/lib/bb/fetch2/hg.py @@ -57,6 +57,8 @@ class Hg(FetchMethod): ud.pkgdir = os.path.join(data.expand('${HGDIR}', d), ud.host, relpath) ud.moddir = os.path.join(ud.pkgdir, ud.module) + ud.setup_revisons(d) + if 'rev' in ud.parm: ud.revision = ud.parm['rev'] elif not ud.revision: -- cgit 1.2.3-korg