summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/fetch
diff options
context:
space:
mode:
authorEric BENARD <eric@eukrea.com>2010-09-06 08:51:52 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:38 +0000
commit3f7000cd3a26ca9f00fa088500a4f745d3553f03 (patch)
tree6339d8fb3456d5545107717dee3535449c3fb9bb /bitbake/lib/bb/fetch
parent493f0cff713624957dbdb4a336d586cf9dd6ca4a (diff)
downloadopenembedded-core-3f7000cd3a26ca9f00fa088500a4f745d3553f03.tar.gz
openembedded-core-3f7000cd3a26ca9f00fa088500a4f745d3553f03.tar.bz2
openembedded-core-3f7000cd3a26ca9f00fa088500a4f745d3553f03.tar.xz
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>
Diffstat (limited to 'bitbake/lib/bb/fetch')
-rw-r--r--bitbake/lib/bb/fetch/hg.py1
1 files changed, 1 insertions, 0 deletions
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)