mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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
This commit is contained in:
@@ -58,7 +58,11 @@ class Cvs(Fetch):
|
|||||||
elif ud.tag:
|
elif ud.tag:
|
||||||
ud.date = ""
|
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)
|
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
|
cvsroot += "@" + ud.host + ":" + cvs_port + ud.path
|
||||||
|
|
||||||
options = []
|
options = []
|
||||||
|
if 'norecurse' in ud.parm:
|
||||||
|
options.append("-l")
|
||||||
if ud.date:
|
if ud.date:
|
||||||
options.append("-D %s" % ud.date)
|
options.append("-D %s" % ud.date)
|
||||||
if ud.tag:
|
if ud.tag:
|
||||||
|
|||||||
Reference in New Issue
Block a user