summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch/cvs.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch/cvs.py b/bitbake/lib/bb/fetch/cvs.py
index 755c5983f4..70869d22ad 100644
--- a/bitbake/lib/bb/fetch/cvs.py
+++ b/bitbake/lib/bb/fetch/cvs.py
@@ -62,7 +62,11 @@ class Cvs(Fetch):
62 if 'norecurse' in ud.parm: 62 if 'norecurse' in ud.parm:
63 norecurse = '_norecurse' 63 norecurse = '_norecurse'
64 64
65 ud.localfile = data.expand('%s_%s_%s_%s%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.tag, ud.date, norecurse), d) 65 fullpath = ''
66 if 'fullpath' in ud.parm:
67 fullpath = '_fullpath'
68
69 ud.localfile = data.expand('%s_%s_%s_%s%s%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.tag, ud.date, norecurse, fullpath), d)
66 70
67 return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile) 71 return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile)
68 72
@@ -150,10 +154,15 @@ class Cvs(Fetch):
150 pass 154 pass
151 raise FetchError(ud.module) 155 raise FetchError(ud.module)
152 156
153 os.chdir(moddir)
154 os.chdir('..')
155 # tar them up to a defined filename 157 # tar them up to a defined filename
156 myret = os.system("tar -czf %s %s" % (ud.localpath, os.path.basename(moddir))) 158 if 'fullpath' in ud.parm:
159 os.chdir(pkgdir)
160 myret = os.system("tar -czf %s %s" % (ud.localpath, localdir))
161 else:
162 os.chdir(moddir)
163 os.chdir('..')
164 myret = os.system("tar -czf %s %s" % (ud.localpath, os.path.basename(moddir)))
165
157 if myret != 0: 166 if myret != 0:
158 try: 167 try:
159 os.unlink(ud.localpath) 168 os.unlink(ud.localpath)