[OE-core] [PATCH] package_manager: Ensure the base-feed directory exists
Alistair Francis
alistair.francis at wdc.com
Wed Jul 17 20:53:40 UTC 2019
Ensure that the /etc/opkg directory exists before we try to create a
file there.
Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
---
meta/lib/oe/package_manager.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 06feb4def7..7c373715ad 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1297,6 +1297,8 @@ class OpkgPM(OpkgDpkgPM):
rootfs_config = os.path.join('%s/etc/opkg/base-feeds.conf'
% self.target_rootfs)
+ os.makedirs('%s/etc/opkg' % self.target_rootfs, exist_ok=True)
+
feed_uris = self.construct_uris(feed_uris.split(), feed_base_paths.split())
archs = self.pkg_archs.split() if feed_archs is None else feed_archs.split()
--
2.22.0
More information about the Openembedded-core
mailing list