diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-07-30 23:01:06 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-01 19:57:49 +0100 |
commit | b70c39767c98231176acf275953f16dd3a8ede38 (patch) | |
tree | 5271c8728a3dcc90eeb6e24560760f97639fda5c /meta/lib | |
parent | dca94d9aa4672cf6beccbaf6b9a09ad83847c59e (diff) | |
download | poky-b70c39767c98231176acf275953f16dd3a8ede38.tar.gz |
lib/package_manager: Fix missing imports
The package_manager code rearranging had some issues with module imports that
were now missing. Fix all the ones I could spot from quick inspection.
(From OE-Core rev: 287eccd7af7d97604ca68d456c23655fd1b6c40b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/package_manager/deb/__init__.py | 2 | ||||
-rw-r--r-- | meta/lib/oe/package_manager/deb/rootfs.py | 3 | ||||
-rw-r--r-- | meta/lib/oe/package_manager/deb/sdk.py | 3 | ||||
-rw-r--r-- | meta/lib/oe/package_manager/ipk/__init__.py | 3 | ||||
-rw-r--r-- | meta/lib/oe/package_manager/ipk/rootfs.py | 1 | ||||
-rw-r--r-- | meta/lib/oe/package_manager/ipk/sdk.py | 4 | ||||
-rw-r--r-- | meta/lib/oe/package_manager/rpm/__init__.py | 2 | ||||
-rw-r--r-- | meta/lib/oe/package_manager/rpm/sdk.py | 2 | ||||
-rw-r--r-- | meta/lib/oe/sdk.py | 2 |
9 files changed, 15 insertions, 7 deletions
diff --git a/meta/lib/oe/package_manager/deb/__init__.py b/meta/lib/oe/package_manager/deb/__init__.py index 3c214e59dd..72155b178c 100644 --- a/meta/lib/oe/package_manager/deb/__init__.py +++ b/meta/lib/oe/package_manager/deb/__init__.py | |||
@@ -2,6 +2,8 @@ | |||
2 | # SPDX-License-Identifier: GPL-2.0-only | 2 | # SPDX-License-Identifier: GPL-2.0-only |
3 | # | 3 | # |
4 | 4 | ||
5 | import re | ||
6 | import subprocess | ||
5 | from oe.package_manager import * | 7 | from oe.package_manager import * |
6 | 8 | ||
7 | class DpkgIndexer(Indexer): | 9 | class DpkgIndexer(Indexer): |
diff --git a/meta/lib/oe/package_manager/deb/rootfs.py b/meta/lib/oe/package_manager/deb/rootfs.py index ac229f63d7..819f67eda5 100644 --- a/meta/lib/oe/package_manager/deb/rootfs.py +++ b/meta/lib/oe/package_manager/deb/rootfs.py | |||
@@ -2,11 +2,12 @@ | |||
2 | # SPDX-License-Identifier: GPL-2.0-only | 2 | # SPDX-License-Identifier: GPL-2.0-only |
3 | # | 3 | # |
4 | 4 | ||
5 | import re | ||
6 | import shutil | ||
5 | from oe.rootfs import Rootfs | 7 | from oe.rootfs import Rootfs |
6 | from oe.manifest import Manifest | 8 | from oe.manifest import Manifest |
7 | from oe.utils import execute_pre_post_process | 9 | from oe.utils import execute_pre_post_process |
8 | from oe.package_manager.deb.manifest import DpkgManifest | 10 | from oe.package_manager.deb.manifest import DpkgManifest |
9 | import re | ||
10 | from oe.package_manager.deb import DpkgPM | 11 | from oe.package_manager.deb import DpkgPM |
11 | 12 | ||
12 | class DpkgOpkgRootfs(Rootfs): | 13 | class DpkgOpkgRootfs(Rootfs): |
diff --git a/meta/lib/oe/package_manager/deb/sdk.py b/meta/lib/oe/package_manager/deb/sdk.py index 3876f9b683..b25eb70b00 100644 --- a/meta/lib/oe/package_manager/deb/sdk.py +++ b/meta/lib/oe/package_manager/deb/sdk.py | |||
@@ -2,11 +2,12 @@ | |||
2 | # SPDX-License-Identifier: GPL-2.0-only | 2 | # SPDX-License-Identifier: GPL-2.0-only |
3 | # | 3 | # |
4 | 4 | ||
5 | import glob | ||
6 | import shutil | ||
5 | from oe.utils import execute_pre_post_process | 7 | from oe.utils import execute_pre_post_process |
6 | from oe.sdk import Sdk | 8 | from oe.sdk import Sdk |
7 | from oe.manifest import Manifest | 9 | from oe.manifest import Manifest |
8 | from oe.package_manager.deb import DpkgPM | 10 | from oe.package_manager.deb import DpkgPM |
9 | import shutil | ||
10 | 11 | ||
11 | class DpkgSdk(Sdk): | 12 | class DpkgSdk(Sdk): |
12 | def __init__(self, d, manifest_dir=None): | 13 | def __init__(self, d, manifest_dir=None): |
diff --git a/meta/lib/oe/package_manager/ipk/__init__.py b/meta/lib/oe/package_manager/ipk/__init__.py index 34500b8a0a..9603993a59 100644 --- a/meta/lib/oe/package_manager/ipk/__init__.py +++ b/meta/lib/oe/package_manager/ipk/__init__.py | |||
@@ -2,6 +2,9 @@ | |||
2 | # SPDX-License-Identifier: GPL-2.0-only | 2 | # SPDX-License-Identifier: GPL-2.0-only |
3 | # | 3 | # |
4 | 4 | ||
5 | import re | ||
6 | import shutil | ||
7 | import subprocess | ||
5 | from oe.package_manager import * | 8 | from oe.package_manager import * |
6 | 9 | ||
7 | class OpkgIndexer(Indexer): | 10 | class OpkgIndexer(Indexer): |
diff --git a/meta/lib/oe/package_manager/ipk/rootfs.py b/meta/lib/oe/package_manager/ipk/rootfs.py index 34dbcc27e6..63b4a59c40 100644 --- a/meta/lib/oe/package_manager/ipk/rootfs.py +++ b/meta/lib/oe/package_manager/ipk/rootfs.py | |||
@@ -4,6 +4,7 @@ | |||
4 | 4 | ||
5 | import re | 5 | import re |
6 | import filecmp | 6 | import filecmp |
7 | import shutil | ||
7 | from oe.rootfs import Rootfs | 8 | from oe.rootfs import Rootfs |
8 | from oe.manifest import Manifest | 9 | from oe.manifest import Manifest |
9 | from oe.utils import execute_pre_post_process | 10 | from oe.utils import execute_pre_post_process |
diff --git a/meta/lib/oe/package_manager/ipk/sdk.py b/meta/lib/oe/package_manager/ipk/sdk.py index e6d7b04bb8..47c0a92c1b 100644 --- a/meta/lib/oe/package_manager/ipk/sdk.py +++ b/meta/lib/oe/package_manager/ipk/sdk.py | |||
@@ -2,12 +2,12 @@ | |||
2 | # SPDX-License-Identifier: GPL-2.0-only | 2 | # SPDX-License-Identifier: GPL-2.0-only |
3 | # | 3 | # |
4 | 4 | ||
5 | import glob | ||
6 | import shutil | ||
5 | from oe.utils import execute_pre_post_process | 7 | from oe.utils import execute_pre_post_process |
6 | from oe.sdk import Sdk | 8 | from oe.sdk import Sdk |
7 | from oe.manifest import Manifest | 9 | from oe.manifest import Manifest |
8 | from oe.package_manager.ipk import OpkgPM | 10 | from oe.package_manager.ipk import OpkgPM |
9 | import shutil | ||
10 | import glob | ||
11 | 11 | ||
12 | class OpkgSdk(Sdk): | 12 | class OpkgSdk(Sdk): |
13 | def __init__(self, d, manifest_dir=None): | 13 | def __init__(self, d, manifest_dir=None): |
diff --git a/meta/lib/oe/package_manager/rpm/__init__.py b/meta/lib/oe/package_manager/rpm/__init__.py index 6183f81d58..c91f61ae5c 100644 --- a/meta/lib/oe/package_manager/rpm/__init__.py +++ b/meta/lib/oe/package_manager/rpm/__init__.py | |||
@@ -2,6 +2,8 @@ | |||
2 | # SPDX-License-Identifier: GPL-2.0-only | 2 | # SPDX-License-Identifier: GPL-2.0-only |
3 | # | 3 | # |
4 | 4 | ||
5 | import shutil | ||
6 | import subprocess | ||
5 | from oe.package_manager import * | 7 | from oe.package_manager import * |
6 | 8 | ||
7 | class RpmIndexer(Indexer): | 9 | class RpmIndexer(Indexer): |
diff --git a/meta/lib/oe/package_manager/rpm/sdk.py b/meta/lib/oe/package_manager/rpm/sdk.py index 4d3f9461ef..b14b155a85 100644 --- a/meta/lib/oe/package_manager/rpm/sdk.py +++ b/meta/lib/oe/package_manager/rpm/sdk.py | |||
@@ -2,11 +2,11 @@ | |||
2 | # SPDX-License-Identifier: GPL-2.0-only | 2 | # SPDX-License-Identifier: GPL-2.0-only |
3 | # | 3 | # |
4 | 4 | ||
5 | import glob | ||
5 | from oe.utils import execute_pre_post_process | 6 | from oe.utils import execute_pre_post_process |
6 | from oe.sdk import Sdk | 7 | from oe.sdk import Sdk |
7 | from oe.manifest import Manifest | 8 | from oe.manifest import Manifest |
8 | from oe.package_manager.rpm import RpmPM | 9 | from oe.package_manager.rpm import RpmPM |
9 | import glob | ||
10 | 10 | ||
11 | class RpmSdk(Sdk): | 11 | class RpmSdk(Sdk): |
12 | def __init__(self, d, manifest_dir=None, rpm_workdir="oe-sdk-repo"): | 12 | def __init__(self, d, manifest_dir=None, rpm_workdir="oe-sdk-repo"): |
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py index 49f519891f..fdcadcb8de 100644 --- a/meta/lib/oe/sdk.py +++ b/meta/lib/oe/sdk.py | |||
@@ -7,8 +7,6 @@ from oe.utils import execute_pre_post_process | |||
7 | from oe.manifest import * | 7 | from oe.manifest import * |
8 | from oe.package_manager import * | 8 | from oe.package_manager import * |
9 | import os | 9 | import os |
10 | import shutil | ||
11 | import glob | ||
12 | import traceback | 10 | import traceback |
13 | 11 | ||
14 | class Sdk(object, metaclass=ABCMeta): | 12 | class Sdk(object, metaclass=ABCMeta): |