summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-01-16 10:56:57 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-01-16 10:56:57 +0000
commitcc1e39fab24b0eaf4f42eff2cfa2dc1eb8899d34 (patch)
tree30e2a84dcf9755955c7a59297fd7b2f1d70d0279
parent2a08e5562665aa3f853c858684fce85cd5885932 (diff)
downloadopenembedded-core-cc1e39fab24b0eaf4f42eff2cfa2dc1eb8899d34.tar.gz
openembedded-core-cc1e39fab24b0eaf4f42eff2cfa2dc1eb8899d34.tar.bz2
openembedded-core-cc1e39fab24b0eaf4f42eff2cfa2dc1eb8899d34.tar.xz
openembedded-core-cc1e39fab24b0eaf4f42eff2cfa2dc1eb8899d34.zip
CVS fetcher: add "norecurse" option to fetch directory from CVS without its
subdirs ("cvs co -l" option) git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3495 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--bitbake/lib/bb/fetch/cvs.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/cvs.py b/bitbake/lib/bb/fetch/cvs.py
index bd3317166..755c5983f 100644
--- a/bitbake/lib/bb/fetch/cvs.py
+++ b/bitbake/lib/bb/fetch/cvs.py
@@ -58,7 +58,11 @@ class Cvs(Fetch):
elif ud.tag:
ud.date = ""
- ud.localfile = data.expand('%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.tag, ud.date), d)
+ norecurse = ''
+ if 'norecurse' in ud.parm:
+ norecurse = '_norecurse'
+
+ ud.localfile = data.expand('%s_%s_%s_%s%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.tag, ud.date, norecurse), d)
return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile)
@@ -100,6 +104,8 @@ class Cvs(Fetch):
cvsroot += "@" + ud.host + ":" + cvs_port + ud.path
options = []
+ if 'norecurse' in ud.parm:
+ options.append("-l")
if ud.date:
options.append("-D %s" % ud.date)
if ud.tag: