aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-11-19 16:38:51 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-11-19 16:38:51 +0100
commit8da9744fcdf856abebcfbe9e3bc1b8cf07bc317b (patch)
treebd930524429b09b6572556854d9d78a6de9acb69 /lib
parente88834fb7c6821cc29c12d296f2edd51f6eb3746 (diff)
downloadbitbake-8da9744fcdf856abebcfbe9e3bc1b8cf07bc317b.tar.gz
svn fetcher: warn people to switch to SRCREV
as noted by rp in ac00ca89a4e43cd4f38ba86455079d31be78e644 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/fetch/svn.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/fetch/svn.py b/lib/bb/fetch/svn.py
index dc35c9d12..e53f59036 100644
--- a/lib/bb/fetch/svn.py
+++ b/lib/bb/fetch/svn.py
@@ -60,13 +60,14 @@ class Svn(Fetch):
ud.date = ud.parm['date']
ud.revision = ""
else:
- #
# ***Nasty hack***
# If DATE in unexpanded PV, use ud.date (which is set from SRCDATE)
# Should warn people to switch to SRCREV here
#
pv = data.getVar("PV", d, 0)
if "DATE" in pv:
+ f = data.getVar("FILE", d, 1)
+ logger.warn("You should switch to SRCREV; pv='%s' in %s" % (pv, f))
ud.revision = ""
else:
rev = Fetch.srcrev_internal_helper(ud, d)