1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

package_deb: check CONFFILES exist before adding them to metadata

dpkg-deb 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: 767a3d1c45f97add720174a7034df750bfb09a8e)

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:
Ross Burton
2013-02-15 13:03:51 +00:00
committed by Richard Purdie
parent b1c887277c
commit f017eb38bb
+2 -1
View File
@@ -365,7 +365,8 @@ python do_package_deb () {
bb.utils.unlockfile(lf) bb.utils.unlockfile(lf)
raise bb.build.FuncFailed("unable to open conffiles for writing.") raise bb.build.FuncFailed("unable to open conffiles for writing.")
for f in conffiles_str.split(): 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() conffiles.close()
os.chdir(basedir) os.chdir(basedir)