diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/COW.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 8 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch/bzr.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch/cvs.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch/git.py | 3 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch/hg.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch/local.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch/perforce.py | 3 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch/ssh.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch/svn.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch/wget.py | 2 |
11 files changed, 8 insertions, 21 deletions
diff --git a/bitbake/lib/bb/COW.py b/bitbake/lib/bb/COW.py index 5db41776ec..ca206cf4b4 100644 --- a/bitbake/lib/bb/COW.py +++ b/bitbake/lib/bb/COW.py | |||
@@ -23,8 +23,6 @@ | |||
23 | # Assign a file to __warn__ to get warnings about slow operations. | 23 | # Assign a file to __warn__ to get warnings about slow operations. |
24 | # | 24 | # |
25 | 25 | ||
26 | from inspect import getmro | ||
27 | |||
28 | import copy | 26 | import copy |
29 | import types | 27 | import types |
30 | types.ImmutableTypes = tuple([ \ | 28 | types.ImmutableTypes = tuple([ \ |
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index a7fc1af0c9..2191c284e3 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py | |||
@@ -24,16 +24,11 @@ BitBake build tools. | |||
24 | # | 24 | # |
25 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig | 25 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig |
26 | 26 | ||
27 | import os, re, fcntl | 27 | import os, re |
28 | import bb | 28 | import bb |
29 | from bb import data | 29 | from bb import data |
30 | from bb import persist_data | 30 | from bb import persist_data |
31 | 31 | ||
32 | try: | ||
33 | import cPickle as pickle | ||
34 | except ImportError: | ||
35 | import pickle | ||
36 | |||
37 | class FetchError(Exception): | 32 | class FetchError(Exception): |
38 | """Exception raised when a download fails""" | 33 | """Exception raised when a download fails""" |
39 | 34 | ||
@@ -65,7 +60,6 @@ def uri_replace(uri, uri_find, uri_replace, d): | |||
65 | result_decoded[loc] = uri_decoded[loc] | 60 | result_decoded[loc] = uri_decoded[loc] |
66 | import types | 61 | import types |
67 | if type(i) == types.StringType: | 62 | if type(i) == types.StringType: |
68 | import re | ||
69 | if (re.match(i, uri_decoded[loc])): | 63 | if (re.match(i, uri_decoded[loc])): |
70 | result_decoded[loc] = re.sub(i, uri_replace_decoded[loc], uri_decoded[loc]) | 64 | result_decoded[loc] = re.sub(i, uri_replace_decoded[loc], uri_decoded[loc]) |
71 | if uri_find_decoded.index(i) == 2: | 65 | if uri_find_decoded.index(i) == 2: |
diff --git a/bitbake/lib/bb/fetch/bzr.py b/bitbake/lib/bb/fetch/bzr.py index b23e9eef86..b27fb63d07 100644 --- a/bitbake/lib/bb/fetch/bzr.py +++ b/bitbake/lib/bb/fetch/bzr.py | |||
@@ -29,7 +29,6 @@ import bb | |||
29 | from bb import data | 29 | from bb import data |
30 | from bb.fetch import Fetch | 30 | from bb.fetch import Fetch |
31 | from bb.fetch import FetchError | 31 | from bb.fetch import FetchError |
32 | from bb.fetch import MissingParameterError | ||
33 | from bb.fetch import runfetchcmd | 32 | from bb.fetch import runfetchcmd |
34 | 33 | ||
35 | class Bzr(Fetch): | 34 | class Bzr(Fetch): |
diff --git a/bitbake/lib/bb/fetch/cvs.py b/bitbake/lib/bb/fetch/cvs.py index aa55ad8bf6..d8bd4eaf75 100644 --- a/bitbake/lib/bb/fetch/cvs.py +++ b/bitbake/lib/bb/fetch/cvs.py | |||
@@ -26,7 +26,7 @@ BitBake build tools. | |||
26 | #Based on functions from the base bb module, Copyright 2003 Holger Schurig | 26 | #Based on functions from the base bb module, Copyright 2003 Holger Schurig |
27 | # | 27 | # |
28 | 28 | ||
29 | import os, re | 29 | import os |
30 | import bb | 30 | import bb |
31 | from bb import data | 31 | from bb import data |
32 | from bb.fetch import Fetch | 32 | from bb.fetch import Fetch |
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py index 54dafec51b..c811937743 100644 --- a/bitbake/lib/bb/fetch/git.py +++ b/bitbake/lib/bb/fetch/git.py | |||
@@ -20,11 +20,10 @@ BitBake 'Fetch' git implementation | |||
20 | # with this program; if not, write to the Free Software Foundation, Inc., | 20 | # with this program; if not, write to the Free Software Foundation, Inc., |
21 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 21 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
22 | 22 | ||
23 | import os, re | 23 | import os |
24 | import bb | 24 | import bb |
25 | from bb import data | 25 | from bb import data |
26 | from bb.fetch import Fetch | 26 | from bb.fetch import Fetch |
27 | from bb.fetch import FetchError | ||
28 | from bb.fetch import runfetchcmd | 27 | from bb.fetch import runfetchcmd |
29 | 28 | ||
30 | class Git(Fetch): | 29 | class Git(Fetch): |
diff --git a/bitbake/lib/bb/fetch/hg.py b/bitbake/lib/bb/fetch/hg.py index b5fd8fecd7..08cb61fc28 100644 --- a/bitbake/lib/bb/fetch/hg.py +++ b/bitbake/lib/bb/fetch/hg.py | |||
@@ -24,7 +24,7 @@ BitBake 'Fetch' implementation for mercurial DRCS (hg). | |||
24 | # | 24 | # |
25 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig | 25 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig |
26 | 26 | ||
27 | import os, re | 27 | import os |
28 | import sys | 28 | import sys |
29 | import bb | 29 | import bb |
30 | from bb import data | 30 | from bb import data |
diff --git a/bitbake/lib/bb/fetch/local.py b/bitbake/lib/bb/fetch/local.py index 54d598ae89..577774e597 100644 --- a/bitbake/lib/bb/fetch/local.py +++ b/bitbake/lib/bb/fetch/local.py | |||
@@ -25,7 +25,7 @@ BitBake build tools. | |||
25 | # | 25 | # |
26 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig | 26 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig |
27 | 27 | ||
28 | import os, re | 28 | import os |
29 | import bb | 29 | import bb |
30 | from bb import data | 30 | from bb import data |
31 | from bb.fetch import Fetch | 31 | from bb.fetch import Fetch |
diff --git a/bitbake/lib/bb/fetch/perforce.py b/bitbake/lib/bb/fetch/perforce.py index 2fb38b4190..394f5a2253 100644 --- a/bitbake/lib/bb/fetch/perforce.py +++ b/bitbake/lib/bb/fetch/perforce.py | |||
@@ -25,12 +25,11 @@ BitBake build tools. | |||
25 | # | 25 | # |
26 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig | 26 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig |
27 | 27 | ||
28 | import os, re | 28 | import os |
29 | import bb | 29 | import bb |
30 | from bb import data | 30 | from bb import data |
31 | from bb.fetch import Fetch | 31 | from bb.fetch import Fetch |
32 | from bb.fetch import FetchError | 32 | from bb.fetch import FetchError |
33 | from bb.fetch import MissingParameterError | ||
34 | 33 | ||
35 | class Perforce(Fetch): | 34 | class Perforce(Fetch): |
36 | def supports(self, url, ud, d): | 35 | def supports(self, url, ud, d): |
diff --git a/bitbake/lib/bb/fetch/ssh.py b/bitbake/lib/bb/fetch/ssh.py index 81a9892dcc..68e6fdb1df 100644 --- a/bitbake/lib/bb/fetch/ssh.py +++ b/bitbake/lib/bb/fetch/ssh.py | |||
@@ -37,11 +37,9 @@ IETF secsh internet draft: | |||
37 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 37 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
38 | 38 | ||
39 | import re, os | 39 | import re, os |
40 | import bb | ||
41 | from bb import data | 40 | from bb import data |
42 | from bb.fetch import Fetch | 41 | from bb.fetch import Fetch |
43 | from bb.fetch import FetchError | 42 | from bb.fetch import FetchError |
44 | from bb.fetch import MissingParameterError | ||
45 | 43 | ||
46 | 44 | ||
47 | __pattern__ = re.compile(r''' | 45 | __pattern__ = re.compile(r''' |
diff --git a/bitbake/lib/bb/fetch/svn.py b/bitbake/lib/bb/fetch/svn.py index aead1629b3..eef9862a84 100644 --- a/bitbake/lib/bb/fetch/svn.py +++ b/bitbake/lib/bb/fetch/svn.py | |||
@@ -23,7 +23,7 @@ BitBake 'Fetch' implementation for svn. | |||
23 | # | 23 | # |
24 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig | 24 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig |
25 | 25 | ||
26 | import os, re | 26 | import os |
27 | import sys | 27 | import sys |
28 | import bb | 28 | import bb |
29 | from bb import data | 29 | from bb import data |
diff --git a/bitbake/lib/bb/fetch/wget.py b/bitbake/lib/bb/fetch/wget.py index d1ae6cb65f..a0dca94040 100644 --- a/bitbake/lib/bb/fetch/wget.py +++ b/bitbake/lib/bb/fetch/wget.py | |||
@@ -25,7 +25,7 @@ BitBake build tools. | |||
25 | # | 25 | # |
26 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig | 26 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig |
27 | 27 | ||
28 | import os, re | 28 | import os |
29 | import bb | 29 | import bb |
30 | from bb import data | 30 | from bb import data |
31 | from bb.fetch import Fetch | 31 | from bb.fetch import Fetch |