summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/fetch
Commit message (Collapse)AuthorAgeFilesLines
* bitbake: fix invalid method and logicJoshua Lock2010-02-051-3/+3
| | | | | | The previous bitbake change included an invalid method call and inverted logic. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake: Test premirrors and mirrors in checkstatus()Joshua Lock2010-02-051-4/+18
| | | | | | | | | | | | 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>
* bitbake: Fix try_mirrors() logic, was only trying the first mirror.Joshua Lock2010-02-041-1/+2
| | | | | | | | | 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>
* bitbake: if PREMIRRORS set test for local file in FetchData.setup_localpathJoshua Lock2010-02-041-8/+22
| | | | | | | | | | 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>
* bitbake: Enhance the fetchers' support for local mirrorsJoshua Lock2010-02-041-7/+15
| | | | | | | | | | 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>
* bitbake: unify mirror support and make it independant of the fetcherJoshua Lock2010-02-0410-99/+53
| | | | | | | | | | | | | | | | | | 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>
* bitbake/git: remove repodir usage (from bitbake master)Martin Jansa2010-01-211-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Switch to bitbake-dev version (bitbake master upstream)Richard Purdie2010-01-206-38/+87
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/git.py: Typo fixRichard Purdie2009-12-111-2/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/git.py: Add support for fullclone parameterRichard Purdie2009-12-111-2/+8
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/git.py: Move variable init into the localpath functionRichard Purdie2009-12-111-19/+17
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* git.py: Improve command failure error messagesRichard Purdie2009-12-111-1/+4
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Fix dict changing size problemsRichard Purdie2009-11-261-3/+5
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* fetch/__init__.py: Try and make the sortable_revision code mode readableRichard Purdie2009-11-132-4/+8
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Sync various functions with those from bitbake-dev and bitbake upstreamRichard Purdie2009-11-131-13/+18
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Sync module import cleanups back from bitbake trunkRichard Purdie2009-11-1310-19/+8
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: hg fetcher - sync bitbake-dev and remove debugRichard Purdie2009-10-201-4/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Add hg fetcher auto revisioning, patch from Carl Simonson ↵Richard Purdie2009-10-191-0/+32
| | | | | | <simonsonc@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Fix svk fetcherRichard Purdie2009-10-171-3/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/fetch: Ensure SRCREVINACTION always resets the core flags even when ↵Richard Purdie2009-09-241-3/+5
| | | | | | parsing failes by using a try/finally Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* __init__.py: export GIT_PROXY_COMMAND for those behind draconian proxiesMike Turquette2009-08-261-1/+1
| | | | Signed-off-by: Mike Turquette <mturquette@ti.com>
* bitbake: Remove persist_data domain renaming code as it appears to expose ↵Richard Purdie2009-07-301-3/+7
| | | | | | sqlite bugs and data consistency issues Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Add a --revisions-changed commandline option to indicate when ↵Richard Purdie2009-07-291-1/+22
| | | | | | floating srcrevs have changed Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Fix wget fetcher bug when only checking URIs and the download ↵Richard Purdie2009-07-071-1/+1
| | | | | | doesn't exist Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Disable sortable revision for nowRichard Purdie2009-06-101-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Add PN to SRCREV keyhash in the persistent database to avoid ↵Richard Purdie2009-06-102-3/+49
| | | | | | conflicts between pacckages (from upstream bitbake) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Sync git fetcher with changes upstreamRichard Purdie2009-05-111-10/+15
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Fix a bug in the hg fetcherRichard Purdie2009-04-211-3/+6
| | | | | | | 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>
* bitbake: fetch/init: Add 'HOME' to list of variables exported when runnig ↵Richard Purdie2009-01-191-1/+1
| | | | fetcher commands
* bitbake: Fix wget fetcher to better handle urls with ; followed by ↵Richard Purdie2009-01-061-1/+1
| | | | parameters in the url
* bitbake: Make sure the git remote head viewer preserves the usernameRichard Purdie2008-12-171-1/+6
|
* bitbake/bitbake-dev: Sync with upstreamRichard Purdie2008-12-063-13/+17
|
* Adds username support to the git fetcher, and exports SSH_AGENT_PID + ↵Robert Bragg2008-12-032-4/+9
| | | | | | | 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.
* bitbake: Optionally take username/password options from url parametersRichard Purdie2008-11-051-0/+4
|
* bitbake wget.py: Fix problem with empty proxy variablesRichard Purdie2008-11-041-2/+2
|
* bitbake: Improve proxy handling got wget so urls can be excluded from the proxyRichard Purdie2008-11-041-3/+22
|
* base.bbclass: Set GIT_CONFIG correctlyRichard Purdie2008-11-041-1/+1
|
* bitbake: Don't export the GIT_PROXY_COMMAND in the fetcher code since it ↵Richard Purdie2008-10-311-1/+1
| | | | means selective proxying isn't possible
* bitbake: Fix the wget fetcher so parameter portions of uris are ignoredRichard Purdie2008-10-241-1/+1
|
* bitbake: Preserve http_proxy and ftp_proxy in fetcher command executionRichard Purdie2008-10-231-1/+1
|
* bitbake: Remove bogus test codeRichard Purdie2008-10-221-1/+0
|
* bitbake: Improve proxy variable handling in fetchersRichard Purdie2008-10-222-0/+13
|
* fetch/__init__.py: Add in hooks to make sure osc fetcher is seenRichard Purdie2008-10-021-0/+2
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5402 311d38ba-8fff-0310-9ca6-ca027cbcb966
* bitbake cache.py: When SRCREV autorevisioning for a recipe is in use, don't ↵Richard Purdie2008-09-301-0/+2
| | | | | | 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
* bitbake: Sync with 1.8 branch upstreamRichard Purdie2008-09-301-1/+5
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5345 311d38ba-8fff-0310-9ca6-ca027cbcb966
* Fetch implementation for the OpenSuse build service.Joshua Lock2008-09-181-0/+155
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5201 311d38ba-8fff-0310-9ca6-ca027cbcb966
* bitbake hg fetcher: Add fix from Matt HoosierRichard Purdie2008-09-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | The Mercurial fetcher right now will fail when used to incrementally fetch an update to a local clone of a repository already fetched at some prior revision. The culprit is the sequence: hg pull -r <rev> hg update -C <rev> A subtlety in the way that Mercurial stores its tags (in a normally version-controlled file called .hgtags) has the side-effect that a repository fetched at a tag "foo" will not actually contain a new-enough copy of the .hgtags file to be self-aware of the foo tag's existence. The solution is just to get all the changesets in the repository on incremental upgrades, so that the following "hg update" will be able to resolve the tag. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5170 311d38ba-8fff-0310-9ca6-ca027cbcb966
* hg fetcher: Apply fixes from Matt HoosierRichard Purdie2008-09-071-1/+4
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5153 311d38ba-8fff-0310-9ca6-ca027cbcb966
* bitbake/utils.py: Add prunedir function to utils collectionRichard Purdie2008-08-181-11/+2
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5065 311d38ba-8fff-0310-9ca6-ca027cbcb966
* __init__.py: Error if SRCREV == INVALIDRichard Purdie2008-07-221-0/+5
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4919 311d38ba-8fff-0310-9ca6-ca027cbcb966