summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2019-07-17 13:53:40 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-18 12:16:19 +0100
commit991cd48af59211d4ade0b0175354ba62762453b9 (patch)
tree52cb29a0a6e398290f6a101f8d92bbcbb0a4de71 /meta/lib/oe
parent4841d57bdb038cb655c2a8dcd5552498d0389b03 (diff)
downloadpoky-991cd48af59211d4ade0b0175354ba62762453b9.tar.gz
package_manager: Ensure the base-feed directory exists
Ensure that the /etc/opkg directory exists before we try to create a file there. (From OE-Core rev: 30ff50223cd0b79fd3b8aa393ea1e621282773ac) Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/package_manager.py2
1 files changed, 2 insertions, 0 deletions
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):
1297 rootfs_config = os.path.join('%s/etc/opkg/base-feeds.conf' 1297 rootfs_config = os.path.join('%s/etc/opkg/base-feeds.conf'
1298 % self.target_rootfs) 1298 % self.target_rootfs)
1299 1299
1300 os.makedirs('%s/etc/opkg' % self.target_rootfs, exist_ok=True)
1301
1300 feed_uris = self.construct_uris(feed_uris.split(), feed_base_paths.split()) 1302 feed_uris = self.construct_uris(feed_uris.split(), feed_base_paths.split())
1301 archs = self.pkg_archs.split() if feed_archs is None else feed_archs.split() 1303 archs = self.pkg_archs.split() if feed_archs is None else feed_archs.split()
1302 1304