diff options
author | Eric BENARD <eric@eukrea.com> | 2010-09-06 08:51:52 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:38 +0000 |
commit | 3f7000cd3a26ca9f00fa088500a4f745d3553f03 (patch) | |
tree | 6339d8fb3456d5545107717dee3535449c3fb9bb /bitbake/lib/bb/fetch | |
parent | 493f0cff713624957dbdb4a336d586cf9dd6ca4a (diff) | |
download | poky-3f7000cd3a26ca9f00fa088500a4f745d3553f03.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)!
(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.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/hg.py b/bitbake/lib/bb/fetch/hg.py index 9c11debd80..f70611017b 100644 --- a/bitbake/lib/bb/fetch/hg.py +++ b/bitbake/lib/bb/fetch/hg.py | |||
@@ -140,6 +140,7 @@ class Hg(Fetch): | |||
140 | # Even when we clone (fetch), we still need to update as hg's clone | 140 | # Even when we clone (fetch), we still need to update as hg's clone |
141 | # won't checkout the specified revision if its on a branch | 141 | # won't checkout the specified revision if its on a branch |
142 | updatecmd = self._buildhgcommand(ud, d, "update") | 142 | updatecmd = self._buildhgcommand(ud, d, "update") |
143 | os.chdir(ud.moddir) | ||
143 | logger.debug(1, "Running %s", updatecmd) | 144 | logger.debug(1, "Running %s", updatecmd) |
144 | runfetchcmd(updatecmd, d) | 145 | runfetchcmd(updatecmd, d) |
145 | 146 | ||