diff options
author | Richard Purdie <richard@openedhand.com> | 2007-11-07 23:49:55 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-11-07 23:49:55 +0000 |
commit | e9b7bc6914c0f1d9282f92748eaa3d308f5d03fd (patch) | |
tree | 69129b5ebf7e9f8d36062ff200636b9367971905 /bitbake/lib/bb/fetch/svn.py | |
parent | e7198e490325a95f1f5c301f76005e4333a08dad (diff) | |
download | openembedded-core-e9b7bc6914c0f1d9282f92748eaa3d308f5d03fd.tar.gz openembedded-core-e9b7bc6914c0f1d9282f92748eaa3d308f5d03fd.tar.bz2 openembedded-core-e9b7bc6914c0f1d9282f92748eaa3d308f5d03fd.zip |
bitbake: fetcher updates - Add BB_GENERATE_MIRROR_TARBALLS option to allow disabling tarball creation to speedup git fetches, improve srcrev handling to remove some hacks and remove the need for external workarounds
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3101 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/fetch/svn.py')
-rw-r--r-- | bitbake/lib/bb/fetch/svn.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/bitbake/lib/bb/fetch/svn.py b/bitbake/lib/bb/fetch/svn.py index 95b21fe20c..c3cebc390d 100644 --- a/bitbake/lib/bb/fetch/svn.py +++ b/bitbake/lib/bb/fetch/svn.py @@ -62,22 +62,18 @@ class Svn(Fetch): ud.revision = "" else: # - # ***Nasty hacks*** + # ***Nasty hack*** # If DATE in unexpanded PV, use ud.date (which is set from SRCDATE) - # Will warn people to switch to SRCREV here - # - # How can we tell when a user has overriden SRCDATE? - # check for "get_srcdate" in unexpanded SRCREV - ugly + # Should warn people to switch to SRCREV here # pv = data.getVar("PV", d, 0) if "DATE" in pv: ud.revision = "" else: - rev = data.getVar("SRCREV", d, 0) - if rev and "get_srcrev" in rev: - ud.revision = self.latest_revision(url, ud, d) - ud.date = "" - elif rev: + rev = data.getVar("SRCREV", d, 1) + if rev is "SRCREVINACTION": + rev = self.latest_revision(url, ud, d) + if rev: ud.revision = rev ud.date = "" else: |