From 0922a865747a6c511d1e673dc903a60274801caf Mon Sep 17 00:00:00 2001 From: Eric BENARD Date: Mon, 6 Sep 2010 08:51:52 +0000 Subject: bitbake: lib/bb/fetch/hg: fix fetching from a mercurial repository MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * without this fix, we get : updating working directory 74 files updated, 0 files merged, 0 files removed, 0 files unresolved abort: There is no Mercurial repository here (.hg not found)! Signed-off-by: Eric BĂ©nard Tested-by: Frans Meulenbroeks Signed-off-by: Chris Larson --- lib/bb/fetch/hg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bb/fetch/hg.py b/lib/bb/fetch/hg.py index d0756382f..bb156ede3 100644 --- a/lib/bb/fetch/hg.py +++ b/lib/bb/fetch/hg.py @@ -138,6 +138,7 @@ class Hg(Fetch): # Even when we clone (fetch), we still need to update as hg's clone # won't checkout the specified revision if its on a branch updatecmd = self._buildhgcommand(ud, d, "update") + os.chdir(ud.moddir) bb.msg.debug(1, bb.msg.domain.Fetcher, "Running %s" % updatecmd) runfetchcmd(updatecmd, d) -- cgit 1.2.3-korg