summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch
diff options
context:
space:
mode:
authorEric BENARD <eric@eukrea.com>2010-09-06 08:51:52 +0000
committerChris Larson <chris_larson@mentor.com>2010-10-21 14:22:38 -0700
commit75ea005ac8fc05b2b3afca803d77a6b5f558efee (patch)
tree554bddf7f6ab10cb3e762c62728146bef9e8c71a /lib/bb/fetch
parent850d6158ea9daa58e896fd6b258d586df797dcf4 (diff)
downloadbitbake-75ea005ac8fc05b2b3afca803d77a6b5f558efee.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>
Diffstat (limited to 'lib/bb/fetch')
-rw-r--r--lib/bb/fetch/hg.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/fetch/hg.py b/lib/bb/fetch/hg.py
index 9c11debd8..f70611017 100644
--- a/lib/bb/fetch/hg.py
+++ b/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)