Chris Larson
a7d5f73134
Fix ud.basecmd error introduced by the FETCHCMD_git commit
...
(Bitbake rev: 0bbcbe3548f39ca46c5aa3bf1a8681026e51cbf0)
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-03-22 14:58:41 +00:00
Tom Rini
dea828c744
Add initial 'repo' fetcher
...
(Bitbake rev: f68406e864c9837feb56cbec993b620481445cc2)
Signed-off-by: Tom Rini <tom_rini@mentor.com >
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-03-22 14:58:15 +00:00
Chris Larson
ac392b66a5
Move encodeurl, decodeurl into bb.fetch.
...
(Bitbake rev: 867d36f9afce2d298874ac7563e5b3852ef04659)
Signed-off-by: Chris Larson <clarson@kergoth.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-03-22 14:54:10 +00:00
Chris Larson
a3012e1ca9
Move MalformedUrl, VarExpandError into appropriate modules.
...
(Bitbake rev: e616483b237dafff7f90ba1c09e9ee7c383a2e47)
Signed-off-by: Chris Larson <clarson@kergoth.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-03-22 14:53:55 +00:00
Martyn Welch
9a0da388ce
Add FETCHCMD parameter for git
...
The Git fetcher currently hardwires the git command to "git". Allow the
path and any additional wrappers to the Git command to be provided via
FETCHCMD functionality, as with some of the other fetchers.
If FETCHCMD_git is not define in bitbake.conf, the fetcher defaults to "git".
(Bitbake rev: f3afb79ecac30d973a3c62ff6baf28d8b7388a24)
Signed-off-by: Malcolm Crossley <malcolm.crossley@ge.com >
Signed-off-by: Martyn Welch <martyn.welch@ge.com >
Signed-off-by: Chris Larson <chris_larson@mentor.com >
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-03-22 14:53:26 +00:00
Richard Purdie
382a630e78
bitbake fetch/__init__.py: Failing urls should raise errors, not fatal exceptions
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-03-15 12:55:47 +00:00
Joshua Lock
52cbb07423
bitbake: fix invalid method and logic
...
The previous bitbake change included an invalid method call and inverted logic.
Signed-off-by: Joshua Lock <josh@linux.intel.com >
2010-02-05 12:41:08 +00:00
Joshua Lock
ec92133d6f
bitbake: Test premirrors and mirrors in checkstatus()
...
checkstatus() is used to ensure we can fetch a copy of each file, so it makes
sense to also test PREMIRRORS and MIRRORS in the method.
This patch adds calls to try_mirrors() to the Fetch.checkstatus() method and
changes the try_mirrors() method to take a check argument, which is False by
default. When check is True try_mirrors() will call a fetchers checkstatus()
with the replaced uri.
Signed-off-by: Joshua Lock <josh@linux.intel.com >
2010-02-05 12:19:05 +00:00
Joshua Lock
c9fd126f64
bitbake: Fix try_mirrors() logic, was only trying the first mirror.
...
The logic in try_mirrors() was buggy such that only the first entry in the
mirrors list was tried.
This patch fixes this. Thanks to Richard for the review.
Signed-off-by: Joshua Lock <josh@linux.intel.com >
2010-02-04 14:08:34 +00:00
Joshua Lock
afe12428a9
bitbake: if PREMIRRORS set test for local file in FetchData.setup_localpath
...
When we are using PREMIRRORS it's possible a mirror in the local namespace
(some filesystem path, i.e. an NFS share) provides read-only files.
This is a perfectly valid scenario so this patch fixes bitbake so that for
such a scenario locapath is set to the files path rather than some child
of DL_DIR.
Signed-off-by: Joshua Lock <josh@linux.intel.com >
2010-02-04 00:18:29 +00:00
Joshua Lock
b571168ac7
bitbake: Enhance the fetchers' support for local mirrors
...
Modify the try_mirrors() function to return the localpath of the fetched file
and update the data dictionary to reflect this.
Secondly the metadata files, lock and md5, should always be stored relative to
the ${DL_DIR} as it is possible that the localpath is a read-only directory,
for example in the scenario where there is a read-only file:// mirror.
Signed-off-by: Joshua Lock <josh@linux.intel.com >
2010-02-04 00:18:29 +00:00
Joshua Lock
0737552c1d
bitbake: unify mirror support and make it independant of the fetcher
...
This patch serves two purposes. Firstly it unifies the concept of mirrors into
PREMIRRORS and MIRRORS. PREMIRRORS are tried before the SRC_URI defined in the
recipe whereas MIRRORS are tried only if that fails.
The tarball stash was conceptually inline with a PREMIRROR only with special
handling within the wget fetcher and therefore only worked with certain
fetch types.
Secondly the patch removes the need for individual fetch implementations to
worry about mirror handling.
With this patch, the base fetch implementation will first try to use a
PREMIRROR to fetch the desired object, if this fails the native fetch method
for the object will be tried and if this fails will try to fetch a copy from
one of the MIRRORS.
Signed-off-by: Joshua Lock <josh@linux.intel.com >
2010-02-04 00:18:29 +00:00
Martin Jansa
c69797d89c
bitbake/git: remove repodir usage (from bitbake master)
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-21 10:30:37 +00:00
Richard Purdie
22c29d8651
bitbake: Switch to bitbake-dev version (bitbake master upstream)
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2010-01-20 18:46:02 +00:00
Richard Purdie
1183aff5e9
bitbake/git.py: Typo fix
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-12-11 17:20:06 +00:00
Richard Purdie
b80f6d8ac4
bitbake/git.py: Add support for fullclone parameter
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-12-11 17:12:53 +00:00
Richard Purdie
a94737f611
bitbake/git.py: Move variable init into the localpath function
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-12-11 17:12:53 +00:00
Richard Purdie
c02e38901b
git.py: Improve command failure error messages
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-12-11 12:48:14 +00:00
Richard Purdie
011557c157
bitbake: Fix dict changing size problems
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-11-26 22:45:52 +00:00
Richard Purdie
b5a059ff28
fetch/__init__.py: Try and make the sortable_revision code mode readable
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-11-13 12:15:23 +00:00
Richard Purdie
483f85802a
bitbake: Sync various functions with those from bitbake-dev and bitbake upstream
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-11-13 12:15:21 +00:00
Richard Purdie
c2b5a61728
bitbake: Sync module import cleanups back from bitbake trunk
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-11-13 12:15:21 +00:00
Richard Purdie
f310816acb
bitbake: hg fetcher - sync bitbake-dev and remove debug
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-10-20 11:29:07 +01:00
Richard Purdie
717d71b8e9
bitbake: Add hg fetcher auto revisioning, patch from Carl Simonson <simonsonc@gmail.com>
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-10-19 17:46:09 +01:00
Richard Purdie
ac4d25c89a
bitbake: Fix svk fetcher
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-10-17 21:07:40 +01:00
Richard Purdie
8138603680
bitbake/fetch: Ensure SRCREVINACTION always resets the core flags even when parsing failes by using a try/finally
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-09-24 18:57:08 +01:00
Mike Turquette
59040b5d14
__init__.py: export GIT_PROXY_COMMAND for those behind draconian proxies
...
Signed-off-by: Mike Turquette <mturquette@ti.com >
2009-08-26 10:56:53 -05:00
Richard Purdie
433c2d2318
bitbake: Remove persist_data domain renaming code as it appears to expose sqlite bugs and data consistency issues
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-07-30 21:24:31 +01:00
Richard Purdie
64b04685b6
bitbake: Add a --revisions-changed commandline option to indicate when floating srcrevs have changed
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-07-29 14:33:14 +01:00
Richard Purdie
1f86370db8
bitbake: Fix wget fetcher bug when only checking URIs and the download doesn't exist
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-07-07 22:44:53 +01:00
Richard Purdie
dbdf1c734f
bitbake: Disable sortable revision for now
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-06-10 12:43:07 +01:00
Richard Purdie
522cffdb9e
bitbake: Add PN to SRCREV keyhash in the persistent database to avoid conflicts between pacckages (from upstream bitbake)
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-06-10 11:21:43 +01:00
Richard Purdie
1ca980646d
bitbake: Sync git fetcher with changes upstream
...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-05-11 22:34:07 +01:00
Richard Purdie
5264d4b9e2
bitbake: Fix a bug in the hg fetcher
...
Fix a bug in the hg fetcher where branch revisions are used with an
initial checkout.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com >
2009-04-21 17:42:47 +01:00
Richard Purdie
bb98685a71
bitbake: fetch/init: Add 'HOME' to list of variables exported when runnig fetcher commands
2009-01-19 22:28:49 +00:00
Richard Purdie
3ec9a7de2a
bitbake: Fix wget fetcher to better handle urls with ; followed by parameters in the url
2009-01-06 19:56:02 +00:00
Richard Purdie
ee1f065078
bitbake: Make sure the git remote head viewer preserves the username
2008-12-17 12:07:41 +00:00
Richard Purdie
ffdec425bf
bitbake/bitbake-dev: Sync with upstream
2008-12-06 13:16:13 +00:00
Robert Bragg
c1a12b7d20
Adds username support to the git fetcher, and exports SSH_AGENT_PID + SSH_AUTH_SOCK
...
The SSH_AGENT_PID + SSH_AUTH_SOCK environment variables are needed if you
are using ssh-agent to hold passwords for your ssh keys.
2008-12-03 16:21:45 +00:00
Richard Purdie
610b53fcb9
bitbake: Optionally take username/password options from url parameters
2008-11-05 10:31:40 +00:00
Richard Purdie
510d5d7f4d
bitbake wget.py: Fix problem with empty proxy variables
2008-11-04 21:11:58 +00:00
Richard Purdie
c2ef2d4f5a
bitbake: Improve proxy handling got wget so urls can be excluded from the proxy
2008-11-04 19:13:03 +00:00
Richard Purdie
4c626238e7
base.bbclass: Set GIT_CONFIG correctly
2008-11-04 13:32:35 +00:00
Richard Purdie
b1046ef743
bitbake: Don't export the GIT_PROXY_COMMAND in the fetcher code since it means selective proxying isn't possible
2008-10-31 14:37:24 +00:00
Richard Purdie
0f9a47af1e
bitbake: Fix the wget fetcher so parameter portions of uris are ignored
2008-10-24 14:57:02 +01:00
Richard Purdie
f0b1d561c7
bitbake: Preserve http_proxy and ftp_proxy in fetcher command execution
2008-10-23 13:34:24 +01:00
Richard Purdie
4815f7bc53
bitbake: Remove bogus test code
2008-10-22 22:26:24 +01:00
Richard Purdie
ede20a3245
bitbake: Improve proxy variable handling in fetchers
2008-10-22 22:24:03 +01:00
Richard Purdie
1dc91f00fd
fetch/__init__.py: Add in hooks to make sure osc fetcher is seen
...
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5402 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-02 22:15:38 +00:00
Richard Purdie
979f987c44
bitbake cache.py: When SRCREV autorevisioning for a recipe is in use, don't cache the recipe. Based on work from Heikki Paajanen
...
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5352 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-09-30 21:54:47 +00:00