diff options
author | Martin Ertsaas <mertsas@cisco.com> | 2012-07-19 13:26:25 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-24 10:35:33 +0100 |
commit | 8a978eeda0ec3daa124513b6c132bba68fdbff2b (patch) | |
tree | 2abafe96f145b620a5467a0ea7d2fad3ac002940 | |
parent | 897d7d171e3470a1299ad6294988408e30ea8cd3 (diff) | |
download | poky-8a978eeda0ec3daa124513b6c132bba68fdbff2b.tar.gz |
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 <mertsas@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/fetch2/bzr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/bzr.py b/bitbake/lib/bb/fetch2/bzr.py index 97daa620f4..58e80c81f6 100644 --- a/bitbake/lib/bb/fetch2/bzr.py +++ b/bitbake/lib/bb/fetch2/bzr.py | |||
@@ -73,7 +73,7 @@ class Bzr(FetchMethod): | |||
73 | options.append("-r %s" % ud.revision) | 73 | options.append("-r %s" % ud.revision) |
74 | 74 | ||
75 | if command == "fetch": | 75 | if command == "fetch": |
76 | bzrcmd = "%s co %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot) | 76 | bzrcmd = "%s branch %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot) |
77 | elif command == "update": | 77 | elif command == "update": |
78 | bzrcmd = "%s pull %s --overwrite" % (basecmd, " ".join(options)) | 78 | bzrcmd = "%s pull %s --overwrite" % (basecmd, " ".join(options)) |
79 | else: | 79 | else: |