aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-08-05 00:24:02 +0000
committerChris Larson <clarson@kergoth.com>2004-08-05 00:24:02 +0000
commit873dbc1f353c9807f0013a4b8cc8f8eee7ef80b5 (patch)
tree01091ad5ca3a883a1d2387c55c18a694fcc4d69a /bin
parentabe2e2833c201db44feb68e964541db74514e614 (diff)
downloadbitbake-873dbc1f353c9807f0013a4b8cc8f8eee7ef80b5.tar.gz
Add 'localdir' parameter to the cvs fetcher, specifically for binutils cvs, for whom
the 'binutils' module creates a local 'src' directory.
Diffstat (limited to 'bin')
-rw-r--r--bin/oe/fetch.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/oe/fetch.py b/bin/oe/fetch.py
index ade343ac9..5e5a3d639 100644
--- a/bin/oe/fetch.py
+++ b/bin/oe/fetch.py
@@ -322,6 +322,11 @@ class Cvs(Fetch):
else:
method = "pserver"
+ if "localdir" in parm:
+ localdir = parm["localdir"]
+ else:
+ localdir = os.path.basename(module)
+
cvs_rsh = None
if method == "ext":
if "rsh" in parm:
@@ -398,7 +403,7 @@ class Cvs(Fetch):
os.chdir(os.path.join(tmpfile, os.path.dirname(module)))
# tar them up to a defined filename
- myret = os.system("tar -czvf %s %s" % (os.path.join(dldir,tarfn), os.path.basename(module)))
+ myret = os.system("tar -czvf %s %s" % (os.path.join(dldir,tarfn), localdir))
if myret != 0:
try:
os.unlink(tarfn)