summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch/svn.py
AgeCommit message (Collapse)Author
2010-09-03Switch bitbake internals to use logging directly rather than bb.msgChris Larson
We use a custom Logger subclass for our loggers This logger provides: - 'debug' method which accepts a debug level - 'plain' method which bypasses log formatting - 'verbose' method which is more detail than info, but less than debug Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Formatting cleanupsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-02-15unify mirror support and make it independant of the fetcherJoshua Lock
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. (From Poky rev: 0737552c1de18c64db8a5a52248a3e7b217f30aa) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-05-11[fetchers] Make pyflakes happy by removing these import statementsHolger Hans Peter Freyther
We don't use the modules, no need to import them here.
2008-11-03[svn] Add @rev to svn checkout commandHolger Hans Peter Freyther
Patch by borgcube@gmx.li Svn tries to be smart about revisions. So, when you check out an older revision of a file it goes to the latest revision (HEAD) and tries to go back to the old file. In this case it was impossible, since the whole thing was moved outside of svn's scope, so svn can't find the file in the HEAD revision. Svn treats this situation as an exception and provides the "peg-revision"-syntax for that. So where you would normally do svn co -r1337 http://url/to/somewhere/module module you would now have to do svn co -r1337 http://url/to/somewhere/module@1337 module, the @1337 telling svn to go start looking at revision 1337 instead of HEAD.
2007-11-17Fetcher SRCREV handling updates, improvements and fixes from Poky, typo fix ↵Richard Purdie
for bin/bitbake
2007-08-25svn.py: Handle paths in svn fetcher module parameterRichard Purdie
2007-08-16Fix syntax and indentionHolger Hans Peter Freyther
2007-08-16svn.py: Handle case where SRCREV=NoneRichard Purdie
2007-08-02fetcher updates: Add SRCREV support to git, fix svn SRCREV lockdown support, ↵Richard Purdie
clean up fetcher force options, finish sortable_revision implementation
2007-07-31Various fetcher bugfixesRichard Purdie
2007-07-31fetch/svn.py: use LC_ALL=C LANG=C (LC_ALL= LANG= doesn't work on all ↵Michael 'Mickey' Lauer
distributions)
2007-07-30svn fetcher: Add SRCREV supportRichard Purdie
2007-07-25svn.py: Add latest_revision and sortable_revison functionsRichard Purdie
2007-07-25fetchers: Add runfetchcmd function to handle command executionRichard Purdie
2007-07-25svn.py: Fix #2624 and #2644 by changing svn layout in SVNDIRRichard Purdie
2007-06-30svn fetcher: Create common 'build svn command' functionRichard Purdie
2007-01-23fetch/svn.py: use username/password when provided in SRC_URI - close OE#1781Marcin Juszkiewicz
Subversion will still ask if self-signed SSL certificate will be used.
2007-01-04drop shebangs from lib/bb scriptsMarcin Juszkiewicz
- those scripts are not called by hand by bitbake users and most of package linting tools (lintian/Debian, rpmlint/Fedora) complain about not executable scripts. - if someone want to run them by hand then he will be able to do it with calling 'python SCRIPT'
2007-01-02svn fetcher: Don't have a date in the filename for specific svn revisionsRichard Purdie
2006-12-08Add proper GPLv2 headers to all BitBake filesHolger Hans Peter Freyther
BitBake trunk is now GPLv2 only, no mix of MIT,FreeBSD License is left. Update GPL headers to point to the correct address of the FSF Update the list of authors. Uli Luckas, Seb Frankengul and Tim Amsell contributed to the sourcecode as well
2006-11-19svn fetcher: added my (C) as this is code which I wrote in 2004 (pre-bitbake ↵Marcin Juszkiewicz
times) http://oe-devel.bkbits.net:8080/oe.deprecated/cset%401.780
2006-11-12Fetchers: More cleanups, error handling fixes, fix SRCDATE handling to ↵Richard Purdie
account for PN 'overrides'
2006-11-12Fetchers: Add forcefetch method for handling of SRCDATE now or tag=master. ↵Richard Purdie
Move md5 code from wget.py into the fetchre core. Start generating md5 stamps for all downloads including scm tarballs. When a download is accessed, touch the md5 file to allow easy creation of source mirrors
2006-11-12fetchers: Only call createCopy and update_data after checking if the ↵Richard Purdie
download already exists. Refactor parameters to wget's fetch_uri and make md5 a global urldata option.
2006-11-12svn.py: Fix a references to dateRichard Purdie
2006-11-12svn.py: Fix a reference to parmRichard Purdie
2006-11-12fetchers: Cleanup more variablesRichard Purdie
2006-11-12fetchers: Remove check_for_tarball() in favour of try_mirror directlyRichard Purdie
2006-11-12fetchers: Create a urldata object which is passed between the different url ↵Richard Purdie
methods. Start to use this to remove duplicate code and duplicate function execution, simplifying the fetchers
2006-11-12fetchers: Refactor interating through urls into the fetcher core (preparing ↵Richard Purdie
for common md5/tarball stash code)
2006-09-09Convert fetchers to use bb.msgRichard Purdie
2006-09-08bitbake/trunk/bitbake: Do svn co's to a permanent directory (SVNDIR) to be ↵Holger Hans Peter Freyther
more similiar to the CVS fetcher Patch courtsey Paul Sokolovsky to address #1367 to have a permanent directory for subversion to ease updating of huge repositories.
2006-05-31bitbake/lib/bb/fetch/*: Implement special 'now' handling for BitBakeHolger Hans Peter Freyther
Patch courtsey Justin Patrin to teach BitBake SRCDATE="now" handling. If SRCDATE is set to now we will not look at the temporary DL_DIR for a saved tarball as we want to download a new version. OpenEmbedded should consider stamping the do fetch phase. Justin thanks for the patch and sorry for all the trouble bitbake/doc/manual/usermanual.xml: Document the 'now' method for svn,svk and cvs
2006-04-29lib/bb/fetch/cvs.py:Richard Purdie
lib/bb/fetch/__init__.py: lib/bb/fetch/svn.py: - Move the DL_DIR check into try_mirror since every fetcher will do this. (git fetcher already assumes this check is made)
2006-03-17lib/bb/fetch.py:Holger Hans Peter Freyther
-svn_rsh was used, but the code was unreachable leading to runtime errors -now if the proto is svn+ssh, honor rsh parameter of the URL
2006-03-16bitbake/lib/bb/fetch/svn:Holger Hans Peter Freyther
Remove the CVS origin from the SVN fetcher. ext and pserver are not used by subversion.
2006-02-17bitbake/lib/bb/__init__:Holger Hans Peter Freyther
Add a try_mirror method responsible of trying the SRC_TARBALL_STASH to get the source from bitbake/lib/bb/{csv,git,svn}: Use this new try_mirror method to get the TARBALL_STASH method bitbake/lib/bb/svk: Add a skeleton (copy of svn) svk fetcher
2006-01-05bitbake/lib/bb/fetch:Holger Hans Peter Freyther
Add a getSRCDate static method to the Fetcher Baseclass to extract the SRCDATE with fallbacks to CVSDATE and DATE Switch over users of CVSDATE to this new method.
2005-12-29bitbake/lib/bb/fetch/svn.py:Holger Hans Peter Freyther
Apply patch courtsey Richard for #554 to include the path in the filename of the tar.gz snapshot
2005-12-29bitbake/lib/bb/fetch/svn.py:Holger Hans Peter Freyther
Apply patch courtsey Chris at openhand.com to make the svn fetcher honor the CVSDATE/DATE when fetching source.
2005-12-18bitbake/bb/fetch:Holger Hans Peter Freyther
Patch courtsey RP for #438. Move the fetchers into a separate module to ease the writing of new fetchers and to separate the individual implementations. bitbake/MANIFEST: added the new files bitbake/setup.py: added the fetch module