diff options
author | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2004-05-03 20:31:17 +0000 |
---|---|---|
committer | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2004-05-03 20:31:17 +0000 |
commit | 5f497e20ad5c41e2a377cb2f004c8768c5de7f53 (patch) | |
tree | 3449fe427c5b5e8d158528287c54d6c18c1e5004 /bin/oe/fetch.py | |
parent | 2679505d7e4294259aa3813843431faf50c6a64f (diff) | |
download | bitbake-5f497e20ad5c41e2a377cb2f004c8768c5de7f53.tar.gz |
add support for CVS_TARBALL_STASH in fetch.py. Set this to http://www.treke.net/oe/source/ in local.conf if you want to use tarballs in preference to direct CVS pulls - patch courtesy pb_.
Diffstat (limited to 'bin/oe/fetch.py')
-rw-r--r-- | bin/oe/fetch.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/oe/fetch.py b/bin/oe/fetch.py index 71603f3e1..6dfb66df1 100644 --- a/bin/oe/fetch.py +++ b/bin/oe/fetch.py @@ -324,10 +324,22 @@ class Cvs(Fetch): oe.data.setVar('TARFILES', dlfile, localdata) oe.data.setVar('TARFN', tarfn, localdata) - if os.access(os.path.join(dldir, tarfn), os.R_OK): + dl = os.path.join(dldir, tarfn) + if os.access(dl, os.R_OK): oe.debug(1, "%s already exists, skipping cvs checkout." % tarfn) continue + cvs_tarball_stash = oe.data.getVar('CVS_TARBALL_STASH', d, 1) + if cvs_tarball_stash: + fetchcmd = oe.data.getVar("FETCHCOMMAND_wget", d, 1) + uri = cvs_tarball_stash + tarfn + oe.note("fetch " + uri) + fetchcmd = fetchcmd.replace("${URI}", uri) + ret = os.system(fetchcmd) + if ret == 0: + oe.note("Fetched %s from tarball stash, skipping checkout" % tarfn) + continue + if date: options.append("-D %s" % date) if tag: |