bitbake: lib/bb/fetch/hg: fix fetching from a mercurial repository
PATCH 1/1 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)!
--- lib/bb/fetch/hg.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
lib/bb/fetch/hg.py +1 -0
@@ -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)
Signature · 1 line
1.6.3.3
2010/9/6 Eric Bénard <[email protected]>:
Quoted 24 lines
* 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 <[email protected]>Tested-by Frans Meulenbroeks <[email protected]>---
lib/bb/fetch/hg.py | 1 +1 files changed, 1 insertions(+), 0 deletions(-)lib/bb/fetch/hg.py +1
-1@@ -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) --
Quoted 1 line
1.6.3.3
I understood from Eric that even with this patch one needs mercurial installed on the host.
I did install it before, and have not tested without it, but with mercurial installed and this patch hg recipes (like ushare) work.
Enjoy, Frans
Quoted 24 lines · Frans Meulenbroeks
2010/9/6 Eric Bénard<[email protected]>:
Quoted 23 lines
* 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<[email protected]>Tested-by Frans Meulenbroeks<[email protected]>--- lib/bb/fetch/hg.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)lib/bb/fetch/hg.py +1
-0@@ -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)
Quoted 8 lines
Quoted 2 lines
--
1.6.3.3I understood from Eric that even with this patch one needs mercurial installed on the host.
I did install it before, and have not tested without it, but with mercurial installed and this patch hg recipes (like ushare) work.
if mercurial is not installed on the host, the error is :/usr/bin/env: hg: No such file or directory
Eric