summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/svn.py
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-11-07 23:49:55 +0000
committerRichard Purdie <richard@openedhand.com>2007-11-07 23:49:55 +0000
commite9b7bc6914c0f1d9282f92748eaa3d308f5d03fd (patch)
tree69129b5ebf7e9f8d36062ff200636b9367971905 /bitbake/lib/bb/fetch/svn.py
parente7198e490325a95f1f5c301f76005e4333a08dad (diff)
downloadpoky-e9b7bc6914c0f1d9282f92748eaa3d308f5d03fd.tar.gz
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.py16
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):
62 ud.revision = "" 62 ud.revision = ""
63 else: 63 else:
64 # 64 #
65 # ***Nasty hacks*** 65 # ***Nasty hack***
66 # If DATE in unexpanded PV, use ud.date (which is set from SRCDATE) 66 # If DATE in unexpanded PV, use ud.date (which is set from SRCDATE)
67 # Will warn people to switch to SRCREV here 67 # Should warn people to switch to SRCREV here
68 #
69 # How can we tell when a user has overriden SRCDATE?
70 # check for "get_srcdate" in unexpanded SRCREV - ugly
71 # 68 #
72 pv = data.getVar("PV", d, 0) 69 pv = data.getVar("PV", d, 0)
73 if "DATE" in pv: 70 if "DATE" in pv:
74 ud.revision = "" 71 ud.revision = ""
75 else: 72 else:
76 rev = data.getVar("SRCREV", d, 0) 73 rev = data.getVar("SRCREV", d, 1)
77 if rev and "get_srcrev" in rev: 74 if rev is "SRCREVINACTION":
78 ud.revision = self.latest_revision(url, ud, d) 75 rev = self.latest_revision(url, ud, d)
79 ud.date = "" 76 if rev:
80 elif rev:
81 ud.revision = rev 77 ud.revision = rev
82 ud.date = "" 78 ud.date = ""
83 else: 79 else: