diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/bzr.py | 7 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/clearcase.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/cvs.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/gitannex.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/gitsm.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/hg.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/local.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/osc.py | 5 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/perforce.py | 3 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/repo.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/sftp.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/ssh.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/svn.py | 5 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 5 |
15 files changed, 11 insertions, 26 deletions
diff --git a/bitbake/lib/bb/fetch2/bzr.py b/bitbake/lib/bb/fetch2/bzr.py index 0f1c420ef7..16123f8af9 100644 --- a/bitbake/lib/bb/fetch2/bzr.py +++ b/bitbake/lib/bb/fetch2/bzr.py | |||
@@ -27,7 +27,6 @@ import os | |||
27 | import sys | 27 | import sys |
28 | import logging | 28 | import logging |
29 | import bb | 29 | import bb |
30 | from bb import data | ||
31 | from bb.fetch2 import FetchMethod | 30 | from bb.fetch2 import FetchMethod |
32 | from bb.fetch2 import FetchError | 31 | from bb.fetch2 import FetchError |
33 | from bb.fetch2 import runfetchcmd | 32 | from bb.fetch2 import runfetchcmd |
@@ -43,14 +42,14 @@ class Bzr(FetchMethod): | |||
43 | """ | 42 | """ |
44 | # Create paths to bzr checkouts | 43 | # Create paths to bzr checkouts |
45 | relpath = self._strip_leading_slashes(ud.path) | 44 | relpath = self._strip_leading_slashes(ud.path) |
46 | ud.pkgdir = os.path.join(data.expand('${BZRDIR}', d), ud.host, relpath) | 45 | ud.pkgdir = os.path.join(d.expand('${BZRDIR}'), ud.host, relpath) |
47 | 46 | ||
48 | ud.setup_revisions(d) | 47 | ud.setup_revisions(d) |
49 | 48 | ||
50 | if not ud.revision: | 49 | if not ud.revision: |
51 | ud.revision = self.latest_revision(ud, d) | 50 | ud.revision = self.latest_revision(ud, d) |
52 | 51 | ||
53 | ud.localfile = data.expand('bzr_%s_%s_%s.tar.gz' % (ud.host, ud.path.replace('/', '.'), ud.revision), d) | 52 | ud.localfile = d.expand('bzr_%s_%s_%s.tar.gz' % (ud.host, ud.path.replace('/', '.'), ud.revision)) |
54 | 53 | ||
55 | def _buildbzrcommand(self, ud, d, command): | 54 | def _buildbzrcommand(self, ud, d, command): |
56 | """ | 55 | """ |
@@ -58,7 +57,7 @@ class Bzr(FetchMethod): | |||
58 | command is "fetch", "update", "revno" | 57 | command is "fetch", "update", "revno" |
59 | """ | 58 | """ |
60 | 59 | ||
61 | basecmd = data.expand('${FETCHCMD_bzr}', d) | 60 | basecmd = d.expand('${FETCHCMD_bzr}') |
62 | 61 | ||
63 | proto = ud.parm.get('protocol', 'http') | 62 | proto = ud.parm.get('protocol', 'http') |
64 | 63 | ||
diff --git a/bitbake/lib/bb/fetch2/clearcase.py b/bitbake/lib/bb/fetch2/clearcase.py index 8df8f53d2f..36beab6a5b 100644 --- a/bitbake/lib/bb/fetch2/clearcase.py +++ b/bitbake/lib/bb/fetch2/clearcase.py | |||
@@ -65,7 +65,6 @@ import os | |||
65 | import sys | 65 | import sys |
66 | import shutil | 66 | import shutil |
67 | import bb | 67 | import bb |
68 | from bb import data | ||
69 | from bb.fetch2 import FetchMethod | 68 | from bb.fetch2 import FetchMethod |
70 | from bb.fetch2 import FetchError | 69 | from bb.fetch2 import FetchError |
71 | from bb.fetch2 import runfetchcmd | 70 | from bb.fetch2 import runfetchcmd |
diff --git a/bitbake/lib/bb/fetch2/cvs.py b/bitbake/lib/bb/fetch2/cvs.py index 64c50c2165..490c954718 100644 --- a/bitbake/lib/bb/fetch2/cvs.py +++ b/bitbake/lib/bb/fetch2/cvs.py | |||
@@ -63,7 +63,7 @@ class Cvs(FetchMethod): | |||
63 | if 'fullpath' in ud.parm: | 63 | if 'fullpath' in ud.parm: |
64 | fullpath = '_fullpath' | 64 | fullpath = '_fullpath' |
65 | 65 | ||
66 | ud.localfile = bb.data.expand('%s_%s_%s_%s%s%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.tag, ud.date, norecurse, fullpath), d) | 66 | ud.localfile = d.expand('%s_%s_%s_%s%s%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.tag, ud.date, norecurse, fullpath)) |
67 | 67 | ||
68 | def need_update(self, ud, d): | 68 | def need_update(self, ud, d): |
69 | if (ud.date == "now"): | 69 | if (ud.date == "now"): |
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 0a5785d486..0779e809a3 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -76,7 +76,6 @@ import re | |||
76 | import bb | 76 | import bb |
77 | import errno | 77 | import errno |
78 | import bb.progress | 78 | import bb.progress |
79 | from bb import data | ||
80 | from bb.fetch2 import FetchMethod | 79 | from bb.fetch2 import FetchMethod |
81 | from bb.fetch2 import runfetchcmd | 80 | from bb.fetch2 import runfetchcmd |
82 | from bb.fetch2 import logger | 81 | from bb.fetch2 import logger |
diff --git a/bitbake/lib/bb/fetch2/gitannex.py b/bitbake/lib/bb/fetch2/gitannex.py index 4937a10891..c66c211428 100644 --- a/bitbake/lib/bb/fetch2/gitannex.py +++ b/bitbake/lib/bb/fetch2/gitannex.py | |||
@@ -22,7 +22,6 @@ BitBake 'Fetch' git annex implementation | |||
22 | 22 | ||
23 | import os | 23 | import os |
24 | import bb | 24 | import bb |
25 | from bb import data | ||
26 | from bb.fetch2.git import Git | 25 | from bb.fetch2.git import Git |
27 | from bb.fetch2 import runfetchcmd | 26 | from bb.fetch2 import runfetchcmd |
28 | from bb.fetch2 import logger | 27 | from bb.fetch2 import logger |
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py index 939fb3f09f..a95584c821 100644 --- a/bitbake/lib/bb/fetch2/gitsm.py +++ b/bitbake/lib/bb/fetch2/gitsm.py | |||
@@ -31,7 +31,6 @@ NOTE: Switching a SRC_URI from "git://" to "gitsm://" requires a clean of your r | |||
31 | 31 | ||
32 | import os | 32 | import os |
33 | import bb | 33 | import bb |
34 | from bb import data | ||
35 | from bb.fetch2.git import Git | 34 | from bb.fetch2.git import Git |
36 | from bb.fetch2 import runfetchcmd | 35 | from bb.fetch2 import runfetchcmd |
37 | from bb.fetch2 import logger | 36 | from bb.fetch2 import logger |
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py index ddbebb5f36..b5f268601c 100644 --- a/bitbake/lib/bb/fetch2/hg.py +++ b/bitbake/lib/bb/fetch2/hg.py | |||
@@ -29,7 +29,6 @@ import sys | |||
29 | import logging | 29 | import logging |
30 | import bb | 30 | import bb |
31 | import errno | 31 | import errno |
32 | from bb import data | ||
33 | from bb.fetch2 import FetchMethod | 32 | from bb.fetch2 import FetchMethod |
34 | from bb.fetch2 import FetchError | 33 | from bb.fetch2 import FetchError |
35 | from bb.fetch2 import MissingParameterError | 34 | from bb.fetch2 import MissingParameterError |
diff --git a/bitbake/lib/bb/fetch2/local.py b/bitbake/lib/bb/fetch2/local.py index 83778883e0..2ff77234e5 100644 --- a/bitbake/lib/bb/fetch2/local.py +++ b/bitbake/lib/bb/fetch2/local.py | |||
@@ -29,7 +29,6 @@ import os | |||
29 | import urllib.request, urllib.parse, urllib.error | 29 | import urllib.request, urllib.parse, urllib.error |
30 | import bb | 30 | import bb |
31 | import bb.utils | 31 | import bb.utils |
32 | from bb import data | ||
33 | from bb.fetch2 import FetchMethod, FetchError | 32 | from bb.fetch2 import FetchMethod, FetchError |
34 | from bb.fetch2 import logger | 33 | from bb.fetch2 import logger |
35 | 34 | ||
diff --git a/bitbake/lib/bb/fetch2/osc.py b/bitbake/lib/bb/fetch2/osc.py index 26f88e1f46..2b4f7d9c13 100644 --- a/bitbake/lib/bb/fetch2/osc.py +++ b/bitbake/lib/bb/fetch2/osc.py | |||
@@ -10,7 +10,6 @@ import os | |||
10 | import sys | 10 | import sys |
11 | import logging | 11 | import logging |
12 | import bb | 12 | import bb |
13 | from bb import data | ||
14 | from bb.fetch2 import FetchMethod | 13 | from bb.fetch2 import FetchMethod |
15 | from bb.fetch2 import FetchError | 14 | from bb.fetch2 import FetchError |
16 | from bb.fetch2 import MissingParameterError | 15 | from bb.fetch2 import MissingParameterError |
@@ -47,7 +46,7 @@ class Osc(FetchMethod): | |||
47 | else: | 46 | else: |
48 | ud.revision = "" | 47 | ud.revision = "" |
49 | 48 | ||
50 | ud.localfile = data.expand('%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.path.replace('/', '.'), ud.revision), d) | 49 | ud.localfile = d.expand('%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.path.replace('/', '.'), ud.revision)) |
51 | 50 | ||
52 | def _buildosccommand(self, ud, d, command): | 51 | def _buildosccommand(self, ud, d, command): |
53 | """ | 52 | """ |
@@ -55,7 +54,7 @@ class Osc(FetchMethod): | |||
55 | command is "fetch", "update", "info" | 54 | command is "fetch", "update", "info" |
56 | """ | 55 | """ |
57 | 56 | ||
58 | basecmd = data.expand('${FETCHCMD_osc}', d) | 57 | basecmd = d.expand('${FETCHCMD_osc}') |
59 | 58 | ||
60 | proto = ud.parm.get('protocol', 'ocs') | 59 | proto = ud.parm.get('protocol', 'ocs') |
61 | 60 | ||
diff --git a/bitbake/lib/bb/fetch2/perforce.py b/bitbake/lib/bb/fetch2/perforce.py index e00cca90e7..3debad59f4 100644 --- a/bitbake/lib/bb/fetch2/perforce.py +++ b/bitbake/lib/bb/fetch2/perforce.py | |||
@@ -26,7 +26,6 @@ BitBake 'Fetch' implementation for perforce | |||
26 | import os | 26 | import os |
27 | import logging | 27 | import logging |
28 | import bb | 28 | import bb |
29 | from bb import data | ||
30 | from bb.fetch2 import FetchMethod | 29 | from bb.fetch2 import FetchMethod |
31 | from bb.fetch2 import FetchError | 30 | from bb.fetch2 import FetchError |
32 | from bb.fetch2 import logger | 31 | from bb.fetch2 import logger |
@@ -89,7 +88,7 @@ class Perforce(FetchMethod): | |||
89 | 88 | ||
90 | ud.setup_revisions(d) | 89 | ud.setup_revisions(d) |
91 | 90 | ||
92 | ud.localfile = data.expand('%s_%s_%s.tar.gz' % (cleanedhost, cleanedpath, ud.revision), d) | 91 | ud.localfile = d.expand('%s_%s_%s.tar.gz' % (cleanedhost, cleanedpath, ud.revision)) |
93 | 92 | ||
94 | def _buildp4command(self, ud, d, command, depot_filename=None): | 93 | def _buildp4command(self, ud, d, command, depot_filename=None): |
95 | """ | 94 | """ |
diff --git a/bitbake/lib/bb/fetch2/repo.py b/bitbake/lib/bb/fetch2/repo.py index 24dcebb0cb..1be91cc698 100644 --- a/bitbake/lib/bb/fetch2/repo.py +++ b/bitbake/lib/bb/fetch2/repo.py | |||
@@ -25,7 +25,6 @@ BitBake "Fetch" repo (git) implementation | |||
25 | 25 | ||
26 | import os | 26 | import os |
27 | import bb | 27 | import bb |
28 | from bb import data | ||
29 | from bb.fetch2 import FetchMethod | 28 | from bb.fetch2 import FetchMethod |
30 | from bb.fetch2 import runfetchcmd | 29 | from bb.fetch2 import runfetchcmd |
31 | 30 | ||
diff --git a/bitbake/lib/bb/fetch2/sftp.py b/bitbake/lib/bb/fetch2/sftp.py index da857dd9ff..81884a6aa4 100644 --- a/bitbake/lib/bb/fetch2/sftp.py +++ b/bitbake/lib/bb/fetch2/sftp.py | |||
@@ -62,12 +62,10 @@ SRC_URI = "sftp://user@host.example.com/dir/path.file.txt" | |||
62 | import os | 62 | import os |
63 | import bb | 63 | import bb |
64 | import urllib.request, urllib.parse, urllib.error | 64 | import urllib.request, urllib.parse, urllib.error |
65 | from bb import data | ||
66 | from bb.fetch2 import URI | 65 | from bb.fetch2 import URI |
67 | from bb.fetch2 import FetchMethod | 66 | from bb.fetch2 import FetchMethod |
68 | from bb.fetch2 import runfetchcmd | 67 | from bb.fetch2 import runfetchcmd |
69 | 68 | ||
70 | |||
71 | class SFTP(FetchMethod): | 69 | class SFTP(FetchMethod): |
72 | """Class to fetch urls via 'sftp'""" | 70 | """Class to fetch urls via 'sftp'""" |
73 | 71 | ||
diff --git a/bitbake/lib/bb/fetch2/ssh.py b/bitbake/lib/bb/fetch2/ssh.py index e668b0d4b7..6047ee417a 100644 --- a/bitbake/lib/bb/fetch2/ssh.py +++ b/bitbake/lib/bb/fetch2/ssh.py | |||
@@ -43,7 +43,6 @@ IETF secsh internet draft: | |||
43 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 43 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
44 | 44 | ||
45 | import re, os | 45 | import re, os |
46 | from bb import data | ||
47 | from bb.fetch2 import FetchMethod | 46 | from bb.fetch2 import FetchMethod |
48 | from bb.fetch2 import FetchError | 47 | from bb.fetch2 import FetchError |
49 | from bb.fetch2 import logger | 48 | from bb.fetch2 import logger |
diff --git a/bitbake/lib/bb/fetch2/svn.py b/bitbake/lib/bb/fetch2/svn.py index 3271be326c..3f172eec9b 100644 --- a/bitbake/lib/bb/fetch2/svn.py +++ b/bitbake/lib/bb/fetch2/svn.py | |||
@@ -28,7 +28,6 @@ import sys | |||
28 | import logging | 28 | import logging |
29 | import bb | 29 | import bb |
30 | import re | 30 | import re |
31 | from bb import data | ||
32 | from bb.fetch2 import FetchMethod | 31 | from bb.fetch2 import FetchMethod |
33 | from bb.fetch2 import FetchError | 32 | from bb.fetch2 import FetchError |
34 | from bb.fetch2 import MissingParameterError | 33 | from bb.fetch2 import MissingParameterError |
@@ -61,7 +60,7 @@ class Svn(FetchMethod): | |||
61 | 60 | ||
62 | # Create paths to svn checkouts | 61 | # Create paths to svn checkouts |
63 | relpath = self._strip_leading_slashes(ud.path) | 62 | relpath = self._strip_leading_slashes(ud.path) |
64 | ud.pkgdir = os.path.join(data.expand('${SVNDIR}', d), ud.host, relpath) | 63 | ud.pkgdir = os.path.join(d.expand('${SVNDIR}'), ud.host, relpath) |
65 | ud.moddir = os.path.join(ud.pkgdir, ud.module) | 64 | ud.moddir = os.path.join(ud.pkgdir, ud.module) |
66 | 65 | ||
67 | ud.setup_revisions(d) | 66 | ud.setup_revisions(d) |
@@ -69,7 +68,7 @@ class Svn(FetchMethod): | |||
69 | if 'rev' in ud.parm: | 68 | if 'rev' in ud.parm: |
70 | ud.revision = ud.parm['rev'] | 69 | ud.revision = ud.parm['rev'] |
71 | 70 | ||
72 | ud.localfile = data.expand('%s_%s_%s_%s_.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision), d) | 71 | ud.localfile = d.expand('%s_%s_%s_%s_.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision)) |
73 | 72 | ||
74 | def _buildsvncommand(self, ud, d, command): | 73 | def _buildsvncommand(self, ud, d, command): |
75 | """ | 74 | """ |
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 1cc445a426..0c61dfa20d 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
@@ -33,7 +33,6 @@ import logging | |||
33 | import bb | 33 | import bb |
34 | import bb.progress | 34 | import bb.progress |
35 | import urllib.request, urllib.parse, urllib.error | 35 | import urllib.request, urllib.parse, urllib.error |
36 | from bb import data | ||
37 | from bb.fetch2 import FetchMethod | 36 | from bb.fetch2 import FetchMethod |
38 | from bb.fetch2 import FetchError | 37 | from bb.fetch2 import FetchError |
39 | from bb.fetch2 import logger | 38 | from bb.fetch2 import logger |
@@ -84,9 +83,9 @@ class Wget(FetchMethod): | |||
84 | else: | 83 | else: |
85 | ud.basename = os.path.basename(ud.path) | 84 | ud.basename = os.path.basename(ud.path) |
86 | 85 | ||
87 | ud.localfile = data.expand(urllib.parse.unquote(ud.basename), d) | 86 | ud.localfile = d.expand(urllib.parse.unquote(ud.basename)) |
88 | if not ud.localfile: | 87 | if not ud.localfile: |
89 | ud.localfile = data.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", "."), d) | 88 | ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", ".")) |
90 | 89 | ||
91 | self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate" | 90 | self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate" |
92 | 91 | ||