From 3f7000cd3a26ca9f00fa088500a4f745d3553f03 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)! (Bitbake rev: 75ea005ac8fc05b2b3afca803d77a6b5f558efee) Signed-off-by: Eric BĂ©nard Tested-by: Frans Meulenbroeks Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch/hg.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib/bb/fetch') diff --git a/bitbake/lib/bb/fetch/hg.py b/bitbake/lib/bb/fetch/hg.py index 9c11debd8..f70611017 100644 --- a/bitbake/lib/bb/fetch/hg.py +++ b/bitbake/lib/bb/fetch/hg.py @@ -140,6 +140,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) logger.debug(1, "Running %s", updatecmd) runfetchcmd(updatecmd, d) -- cgit v1.2.3