diff options
author | Chris Larson <clarson@kergoth.com> | 2004-08-05 00:24:02 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-08-05 00:24:02 +0000 |
commit | 873dbc1f353c9807f0013a4b8cc8f8eee7ef80b5 (patch) | |
tree | 01091ad5ca3a883a1d2387c55c18a694fcc4d69a /bin | |
parent | abe2e2833c201db44feb68e964541db74514e614 (diff) | |
download | bitbake-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.py | 7 |
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) |