From fbc9cef80bf95ab3e0197affed5b30215bef353a Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Tue, 5 Jun 2007 08:57:53 +0100 Subject: BUILD: Clone the Linux tree if it wasn't found via $(LINUX_SRC_PATH) even if it happens to be a local directory. If we located the Linux tree by deriving the path from "hg path default" and it is a local path then prepend "file://" to prevent us trying to symlink it. Unfortunately mercurial doesn't understand file:// URLs so we have to strip it off again before calling hg clone. Signed-off-by: Ian Campbell --- buildconfigs/src.hg-clone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buildconfigs/src.hg-clone') diff --git a/buildconfigs/src.hg-clone b/buildconfigs/src.hg-clone index d3696172d0..e1d7913c61 100644 --- a/buildconfigs/src.hg-clone +++ b/buildconfigs/src.hg-clone @@ -28,7 +28,7 @@ $(LINUX_SRCDIR)/.valid-src: $(__XEN_LINUX_UPDATE) ln -s $${__repo} $(LINUX_SRCDIR) ; \ else \ echo "Cloning $${__repo} to $(LINUX_SRCDIR)." ; \ - $(HG) clone $${__repo} $(LINUX_SRCDIR) ; \ + $(HG) clone $${__repo#file://} $(LINUX_SRCDIR) ; \ fi ; \ else \ __parent=$$($(HG) -R $(LINUX_SRCDIR) path default) ; \ -- cgit v1.2.3