From 232ef8430e2cfbf6eee54f602dc74b9986e3997f Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Fri, 27 Aug 2010 15:52:08 +0100 Subject: bitbake/fetch: ensure the mirrored repository is updated as required If we fetch a tarball from a mirror it's entirely possible that the mirror will have been from before the required tag/branch/etc was included in the repository. To that end use forcefetch() as a way of testing whether the repository is up to date and if not fetch updates. Signed-off-by: Joshua Lock --- bitbake/lib/bb/fetch/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index ab097dda53..9a99b346b3 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py @@ -259,7 +259,9 @@ def go(d, urls = None): # First try fetching uri, u, from PREMIRRORS mirrors = [ i.split() for i in (bb.data.getVar('PREMIRRORS', d, 1) or "").split('\n') if i ] localpath = try_mirrors(d, u, mirrors, False, m.forcefetch(u, ud, d)) - if not localpath: + + # Need to re-test forcefetch() which will return true if our copy is too old + if m.forcefetch(u, ud, d) or not localpath: # Next try fetching from the original uri, u try: m.go(u, ud, d) -- cgit v1.2.3 > Mirror of openembedded-coreMulti-Tech Systems
summaryrefslogtreecommitdiff
whitespace at end-of-line in about 900 bb files.
AgeCommit message (Expand)AuthorFiles
Rolf Leggewie2
2006-11-29Introduce STAGING_BINDIR_CROSS and STAGING_BINDIR_NATIVE as discussed on the ...Richard Purdie1
2006-11-18Fix parse error by adding one or two "'" or '"' removing whitespace behind \...Holger Freyther1
2006-10-10Remove MAINTAINER fields from recipes, add MAINTAINER file to replace them.Koen Kooi1
2006-08-05packages: sed -i s/^"include "/"require "/ */*.bb GNU sed rocks!Holger Freyther2
2006-07-02Opie: Rename Opie 1.2.1 to 1.2.2, Remove PRsHolger Freyther1
2006-01-13PV changes to make sure upgrades aren't affected after the recent cvs PV stan...Richard Purdie1
2006-01-07Convert CVSDATE -> SRCDATE. Also standardise cvs and svn PVs to x.x.x+cvsYYYY...Richard Purdie1
2005-09-12Opie 1.2.1:Holger Freyther2
2005-06-30import clean BK tree at cset 1.3670Koen Kooi3
2005-03-26Merge nslu2-linux@nslu2-linux.bkbits.net:openembeddedg2@giantshoulder.com4
2005-02-23Merge bk://oe-devel.bkbits.net/openembeddednslu2-linux.adm@bkbits.net2
2005-02-10updated PV in few OPIE packages to 1.1.9Marcin Juszkiewicz1
2005-02-03libqtaux: make do_stage explicit rather than implicitMichael Lauer2
2005-02-03Merge bk://oe-devel@oe-devel.bkbits.net/openembeddedMichael Lauer2
2005-02-02compute TAG line in opie.bbclass instead of in (all) opie filesMichael Lauer1
2005-02-02Merge bk://oe-devel@oe-devel.bkbits.net/openembeddedMichael Lauer1
2004-12-26Merge bk://oe-devel.bkbits.net/openembeddednslu2-linux.adm@bkbits.net1
2004-12-09Merge oe-devel@oe-devel.bkbits.net:openembeddedChris Larson2