[oe] ushare_hg (the leading ushare recipe) does not fetch

Eric Bénard eric at eukrea.com
Sun Sep 5 09:02:06 UTC 2010


Hi Frans,

Le 05/09/2010 10:41, Frans Meulenbroeks a écrit :
> I tried to build ushare, but it fails to fetch the source.
> This source is at http://hg.geexbox.org/ushare/summary
>
> II'm not a mercurial wiz, still tried a few things, but can't seem to
> be able to resolve it.
> Can someone with more hg knowledge peek into this?
>
> Meanwhile, I suggest adding a DP of  -1 to the hg version. The 1.1a
> version still builds properly.
>
does the attached patch to bitbake fix this for you ?
(you need to delete the directory in downloads :hg/hg.geexbox.org/ushare 
before).

Eric

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)





More information about the Openembedded-devel mailing list