mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 22:39:49 +02:00
package_ipk: check CONFFILES exist before adding them to metadata
opkg-build verifies that conffiles exist, so verify that the specified files actually exist before writing them to conffiles. This mirrors the behaviour of FILES and package_rpm's CONFFILES handling. (From OE-Core rev: fb87edc881009cf4d582cd95c248884551fe07fe) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a9608dd3e5
commit
70b731c6f0
@@ -440,7 +440,8 @@ python do_package_ipk () {
|
||||
bb.utils.unlockfile(lf)
|
||||
raise bb.build.FuncFailed("unable to open conffiles for writing.")
|
||||
for f in conffiles_str.split():
|
||||
conffiles.write('%s\n' % f)
|
||||
if os.path.exists(oe.path.join(root, f)):
|
||||
conffiles.write('%s\n' % f)
|
||||
conffiles.close()
|
||||
|
||||
os.chdir(basedir)
|
||||
|
||||
Reference in New Issue
Block a user