From: Martin Ertsaas Date: Thu, 19 Jul 2012 11:26:25 +0000 (+0200) Subject: bitbake: Change bzr fetcher to use branch instead of co. Fixes: bzr: ERROR: No pull... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a978eeda0ec3daa124513b6c132bba68fdbff2b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: Change bzr fetcher to use branch instead of co. Fixes: bzr: ERROR: No pull location known or specified. This problem occurs when fetching a different revision of the same source. Which mean every time you update a bzr package. Using branch sets the pull location, and are the preferred way of cloning/branching a repository in bzr. (Bitbake rev: 877a04d0b3cea9d5dbdf3c54fe0feb54cb997dda) Signed-off-by: Martin Ertsaas Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/fetch2/bzr.py b/bitbake/lib/bb/fetch2/bzr.py index 97daa620f43..58e80c81f64 100644 --- a/bitbake/lib/bb/fetch2/bzr.py +++ b/bitbake/lib/bb/fetch2/bzr.py @@ -73,7 +73,7 @@ class Bzr(FetchMethod): options.append("-r %s" % ud.revision) if command == "fetch": - bzrcmd = "%s co %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot) + bzrcmd = "%s branch %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot) elif command == "update": bzrcmd = "%s pull %s --overwrite" % (basecmd, " ".join(options)) else: