[oe-commits] [openembedded-core] 17/19: package_manager: Ensure the base-feed directory exists
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 18 11:17:57 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit 30ff50223cd0b79fd3b8aa393ea1e621282773ac
Author: Alistair Francis <alistair.francis at wdc.com>
AuthorDate: Wed Jul 17 13:53:40 2019 -0700
package_manager: Ensure the base-feed directory exists
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>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
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 06feb4d..7c37371 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()
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list