diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2015-06-30 11:19:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-16 15:08:40 +0100 |
commit | d48233cb1fd84f1061a8ba3c15bacc180e93934c (patch) | |
tree | c4ecf0e014d9df65a84502a5f25da056453fd68a /meta/classes | |
parent | e26e348d7b6301f0e1cb15018ebadfa0eea4013c (diff) | |
download | openembedded-core-contrib-d48233cb1fd84f1061a8ba3c15bacc180e93934c.tar.gz |
buildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt
This is just a safe check to make sure the output folder is present, before
creating the files-in-$pkg.txt file.
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 8fc8a3ab08f..cad5116ed5a 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -444,7 +444,13 @@ buildhistory_list_pkg_files() { # Create individual files-in-package for each recipe's package for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do pkgname=$(basename ${pkgdir}) - outfile="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}/${file_prefix}${pkgname}.txt" + outfolder="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}" + outfile="${outfolder}/${file_prefix}${pkgname}.txt" + # Make sure the output folder, exist so we can create the files-in-$pkgname.txt file + if [ ! -d ${outfolder} ] ; then + bbdebug 2 "Folder ${outfolder} does not exist, file ${outfile} not created" + continue + fi buildhistory_list_files ${pkgdir} ${outfile} done } |