diff options
author | Eric BENARD <eric@eukrea.com> | 2010-09-06 08:51:52 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:38 +0000 |
commit | 3f7000cd3a26ca9f00fa088500a4f745d3553f03 (patch) | |
tree | 6339d8fb3456d5545107717dee3535449c3fb9bb | |
parent | 493f0cff713624957dbdb4a336d586cf9dd6ca4a (diff) | |
download | openembedded-core-3f7000cd3a26ca9f00fa088500a4f745d3553f03.tar.gz openembedded-core-3f7000cd3a26ca9f00fa088500a4f745d3553f03.tar.bz2 openembedded-core-3f7000cd3a26ca9f00fa088500a4f745d3553f03.zip |
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)!
(Bitbake rev: 75ea005ac8fc05b2b3afca803d77a6b5f558efee)
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>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | bitbake/lib/bb/fetch/hg.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/hg.py b/bitbake/lib/bb/fetch/hg.py index 9c11debd80..f70611017b 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) |