summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2024-02-02 19:57:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-08 10:53:13 +0000
commit77f5f99fcfa202dbd6ffdbcfc4e4a056f2d6deae (patch)
tree3959d78354b07d0cebcf1752d759832ced136de7 /meta/lib/oe
parenteba805ace44c6884377e765860059d39c61405a2 (diff)
downloadpoky-77f5f99fcfa202dbd6ffdbcfc4e4a056f2d6deae.tar.gz
package_manager: ipk: add OPKG_MAKE_INDEX_EXTRA_PARAMS variable
* can be used to pass e.g. -f param to preserve user-defined fields in the index as added in: https://git.yoctoproject.org/opkg-utils/commit/opkg-make-index?id=13f6281d24e17199e0fef6c2984419372ea0f86f * otherwise it will show a lot of messages like: "Lost field Author <value>" for every package in the feed (From OE-Core rev: 6dc772fd9d5c2d90a6e32cfa4bc46ca0221f1b7f) Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/package_manager/ipk/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager/ipk/__init__.py b/meta/lib/oe/package_manager/ipk/__init__.py
index 8fcbad56aa..8cc9953a02 100644
--- a/meta/lib/oe/package_manager/ipk/__init__.py
+++ b/meta/lib/oe/package_manager/ipk/__init__.py
@@ -16,6 +16,7 @@ class OpkgIndexer(Indexer):
16 ] 16 ]
17 17
18 opkg_index_cmd = bb.utils.which(os.getenv('PATH'), "opkg-make-index") 18 opkg_index_cmd = bb.utils.which(os.getenv('PATH'), "opkg-make-index")
19 opkg_index_cmd_extra_params = self.d.getVar('OPKG_MAKE_INDEX_EXTRA_PARAMS') or ""
19 if self.d.getVar('PACKAGE_FEED_SIGN') == '1': 20 if self.d.getVar('PACKAGE_FEED_SIGN') == '1':
20 signer = get_signer(self.d, self.d.getVar('PACKAGE_FEED_GPG_BACKEND')) 21 signer = get_signer(self.d, self.d.getVar('PACKAGE_FEED_GPG_BACKEND'))
21 else: 22 else:
@@ -41,8 +42,8 @@ class OpkgIndexer(Indexer):
41 if not os.path.exists(pkgs_file): 42 if not os.path.exists(pkgs_file):
42 open(pkgs_file, "w").close() 43 open(pkgs_file, "w").close()
43 44
44 index_cmds.add('%s --checksum md5 --checksum sha256 -r %s -p %s -m %s' % 45 index_cmds.add('%s --checksum md5 --checksum sha256 -r %s -p %s -m %s %s' %
45 (opkg_index_cmd, pkgs_file, pkgs_file, pkgs_dir)) 46 (opkg_index_cmd, pkgs_file, pkgs_file, pkgs_dir, opkg_index_cmd_extra_params))
46 47
47 index_sign_files.add(pkgs_file) 48 index_sign_files.add(pkgs_file)
48 49