summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/svn.py
diff options
context:
space:
mode:
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: