summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-04 13:46:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-10 23:37:06 +0000
commit9e6185fc17a8f7be8382bcd6d54dfe4aa5f0bed9 (patch)
treec5179b261e6fc0aee44e28378f3811274bde325d
parent74d58230f4fedd3783ca15e71c2990fa1c248986 (diff)
downloadbitbake-9e6185fc17a8f7be8382bcd6d54dfe4aa5f0bed9.tar.gz
bitbake/fetch2/svn: The concept of using dates with svn is totally insane, drop support
(From Poky rev: ee6f34483a9bfeca5b5c3656fd62bb4849d5fbb8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/svn.py22
1 files changed, 1 insertions, 21 deletions
diff --git a/lib/bb/fetch2/svn.py b/lib/bb/fetch2/svn.py
index ce8628890..4ab643bcf 100644
--- a/lib/bb/fetch2/svn.py
+++ b/lib/bb/fetch2/svn.py
@@ -57,26 +57,9 @@ class Svn(FetchMethod):
ud.moddir = os.path.join(ud.pkgdir, ud.module)
if 'rev' in ud.parm:
- ud.date = ""
ud.revision = ud.parm['rev']
- elif 'date' in ud.date:
- 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:
- ud.revision = ""
- else:
- # use the initizlied revision
- if ud.revision:
- ud.date = ""
- ud.localfile = data.expand('%s_%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision, ud.date), d)
+ ud.localfile = data.expand('%s_%s_%s_%s_.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision), d)
def _buildsvncommand(self, ud, d, command):
"""
@@ -94,7 +77,6 @@ class Svn(FetchMethod):
svnroot = ud.host + ud.path
- # either use the revision, or SRCDATE in braces,
options = []
if ud.user:
@@ -110,8 +92,6 @@ class Svn(FetchMethod):
if ud.revision:
options.append("-r %s" % ud.revision)
suffix = "@%s" % (ud.revision)
- elif ud.date:
- options.append("-r {%s}" % ud.date)
if command is "fetch":
svncmd = "%s co %s %s://%s/%s%s %s" % (basecmd, " ".join(options), proto, svnroot, ud.module, suffix, ud.module)