]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: Change bzr fetcher to use branch instead of co. Fixes: bzr: ERROR: No pull...
authorMartin Ertsaas <mertsas@cisco.com>
Thu, 19 Jul 2012 11:26:25 +0000 (13:26 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Jul 2012 09:35:33 +0000 (10:35 +0100)
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 <mertsas@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/bzr.py

index 97daa620f43a3557397a7bb04e2dc31daf0827d4..58e80c81f64630d21bfc7950211ed7f28896a1cb 100644 (file)
@@ -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: