summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-11-19 16:38:51 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:41 +0000
commit81a81a163cb066a55d65d573e6baab35db0151ca (patch)
tree7123daddb4a3bc26bdbd235bec8bfa81ed85233a /bitbake/lib
parent4df0d6adcaae5382009c356d750e7909a44284f6 (diff)
downloadpoky-81a81a163cb066a55d65d573e6baab35db0151ca.tar.gz
svn fetcher: warn people to switch to SRCREV
as noted by rp in ac00ca89a4e43cd4f38ba86455079d31be78e644 (Bitbake rev: 8da9744fcdf856abebcfbe9e3bc1b8cf07bc317b) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/fetch/svn.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/svn.py b/bitbake/lib/bb/fetch/svn.py
index dc35c9d121..e53f59036d 100644
--- a/bitbake/lib/bb/fetch/svn.py
+++ b/bitbake/lib/bb/fetch/svn.py
@@ -60,13 +60,14 @@ class Svn(Fetch):
60 ud.date = ud.parm['date'] 60 ud.date = ud.parm['date']
61 ud.revision = "" 61 ud.revision = ""
62 else: 62 else:
63 #
64 # ***Nasty hack*** 63 # ***Nasty hack***
65 # If DATE in unexpanded PV, use ud.date (which is set from SRCDATE) 64 # If DATE in unexpanded PV, use ud.date (which is set from SRCDATE)
66 # Should warn people to switch to SRCREV here 65 # Should warn people to switch to SRCREV here
67 # 66 #
68 pv = data.getVar("PV", d, 0) 67 pv = data.getVar("PV", d, 0)
69 if "DATE" in pv: 68 if "DATE" in pv:
69 f = data.getVar("FILE", d, 1)
70 logger.warn("You should switch to SRCREV; pv='%s' in %s" % (pv, f))
70 ud.revision = "" 71 ud.revision = ""
71 else: 72 else:
72 rev = Fetch.srcrev_internal_helper(ud, d) 73 rev = Fetch.srcrev_internal_helper(ud, d)