diff options
author | Eric BENARD <eric@eukrea.com> | 2010-09-06 08:51:52 +0000 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-10-21 07:24:17 -0700 |
commit | 0922a865747a6c511d1e673dc903a60274801caf (patch) | |
tree | 59ee8d11f6838f07f8f01031259086979cef1553 | |
parent | 2bcc6b38b6cad6f040980bc1d844c26a315e51bd (diff) | |
download | bitbake-0922a865747a6c511d1e673dc903a60274801caf.tar.gz |
bitbake: lib/bb/fetch/hg: fix fetching from a mercurial repository
* 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 <eric@eukrea.com>
Tested-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r-- | lib/bb/fetch/hg.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |