summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/fetch
AgeCommit message (Collapse)AuthorFiles
2010-02-05bitbake: fix invalid method and logicJoshua Lock1
The previous bitbake change included an invalid method call and inverted logic. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-02-05bitbake: Test premirrors and mirrors in checkstatus()Joshua Lock1
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-04bitbake: Fix try_mirrors() logic, was only trying the first mirror.Joshua Lock1
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-04bitbake: if PREMIRRORS set test for local file in FetchData.setup_localpathJoshua Lock1
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-04bitbake: Enhance the fetchers' support for local mirrorsJoshua Lock1
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-04bitbake: unify mirror support and make it independant of the fetcherJoshua Lock10
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-01-21bitbake/git: remove repodir usage (from bitbake master)Martin Jansa1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-20bitbake: Switch to bitbake-dev version (bitbake master upstream)Richard Purdie6
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-12-11bitbake/git.py: Typo fixRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-12-11bitbake/git.py: Add support for fullclone parameterRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-12-11bitbake/git.py: Move variable init into the localpath functionRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-12-11git.py: Improve command failure error messagesRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-26bitbake: Fix dict changing size problemsRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13fetch/__init__.py: Try and make the sortable_revision code mode readableRichard Purdie2
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13bitbake: Sync various functions with those from bitbake-dev and bitbake upstreamRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13bitbake: Sync module import cleanups back from bitbake trunkRichard Purdie10
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-10-20bitbake: hg fetcher - sync bitbake-dev and remove debugRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-10-19bitbake: Add hg fetcher auto revisioning, patch from Carl Simonson ↵Richard Purdie1
<simonsonc@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-10-17bitbake: Fix svk fetcherRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-24bitbake/fetch: Ensure SRCREVINACTION always resets the core flags even when ↵Richard Purdie1
parsing failes by using a try/finally Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-08-26__init__.py: export GIT_PROXY_COMMAND for those behind draconian proxiesMike Turquette1
Signed-off-by: Mike Turquette <mturquette@ti.com>
2009-07-30bitbake: Remove persist_data domain renaming code as it appears to expose ↵Richard Purdie1
sqlite bugs and data consistency issues Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-07-29bitbake: Add a --revisions-changed commandline option to indicate when ↵Richard Purdie1
floating srcrevs have changed Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-07-07bitbake: Fix wget fetcher bug when only checking URIs and the download ↵Richard Purdie1
doesn't exist Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-06-10bitbake: Disable sortable revision for nowRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-06-10bitbake: Add PN to SRCREV keyhash in the persistent database to avoid ↵Richard Purdie2
conflicts between pacckages (from upstream bitbake) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-05-11bitbake: Sync git fetcher with changes upstreamRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-04-21bitbake: Fix a bug in the hg fetcherRichard Purdie1
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-01-19bitbake: fetch/init: Add 'HOME' to list of variables exported when runnig ↵Richard Purdie1
fetcher commands
2009-01-06bitbake: Fix wget fetcher to better handle urls with ; followed by ↵Richard Purdie1
parameters in the url
2008-12-17bitbake: Make sure the git remote head viewer preserves the usernameRichard Purdie1
2008-12-06bitbake/bitbake-dev: Sync with upstreamRichard Purdie3
2008-12-03Adds username support to the git fetcher, and exports SSH_AGENT_PID + ↵Robert Bragg2
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-11-05bitbake: Optionally take username/password options from url parametersRichard Purdie1
2008-11-04bitbake wget.py: Fix problem with empty proxy variablesRichard Purdie1
2008-11-04bitbake: Improve proxy handling got wget so urls can be excluded from the proxyRichard Purdie1
2008-11-04base.bbclass: Set GIT_CONFIG correctlyRichard Purdie1
2008-10-31bitbake: Don't export the GIT_PROXY_COMMAND in the fetcher code since it ↵Richard Purdie1
means selective proxying isn't possible
2008-10-24bitbake: Fix the wget fetcher so parameter portions of uris are ignoredRichard Purdie1
2008-10-23bitbake: Preserve http_proxy and ftp_proxy in fetcher command executionRichard Purdie1
2008-10-22bitbake: Remove bogus test codeRichard Purdie1
2008-10-22bitbake: Improve proxy variable handling in fetchersRichard Purdie2
2008-10-02fetch/__init__.py: Add in hooks to make sure osc fetcher is seenRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5402 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-09-30bitbake cache.py: When SRCREV autorevisioning for a recipe is in use, don't ↵Richard Purdie1
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-30bitbake: Sync with 1.8 branch upstreamRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5345 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-09-18Fetch implementation for the OpenSuse build service.Joshua Lock1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5201 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-09-10bitbake hg fetcher: Add fix from Matt HoosierRichard Purdie1
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
2008-09-07hg fetcher: Apply fixes from Matt HoosierRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5153 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-08-18bitbake/utils.py: Add prunedir function to utils collectionRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5065 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-07-22__init__.py: Error if SRCREV == INVALIDRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4919 311d38ba-8fff-0310-9ca6-ca027cbcb966