[oe] [PATCH] bitbake: lib/bb/fetch/hg: fix fetching from a mercurial repository
Eric Bénard
eric at eukrea.com
Mon Sep 6 18:51:52 UTC 2010
* 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 at eukrea.com>
Tested-by: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
---
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 d075638..bb156ed 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)
--
1.6.3.3
More information about the Openembedded-devel
mailing list