]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake: lib/bb/fetch/hg: fix fetching from a mercurial repository
authorEric BENARD <eric@eukrea.com>
Mon, 6 Sep 2010 08:51:52 +0000 (08:51 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:38 +0000 (14:46 +0000)
* 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>
bitbake/lib/bb/fetch/hg.py

index 9c11debd80ebda958164ed2a614d146e7295251e..f70611017b6a5e0d491ab72b29dd8cc4ab567435 100644 (file)
@@ -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)