summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2015-06-30 11:19:40 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-16 15:09:16 +0100
commitb250b5c7bef8fb0700266e0ebc5063d6e643a46f (patch)
tree1424eba61942053e8da1ffc40505be9af3978404 /meta/classes/buildhistory.bbclass
parenta79007b4b2345971dc54a873f6e580d8c4884073 (diff)
downloadpoky-b250b5c7bef8fb0700266e0ebc5063d6e643a46f.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. (From OE-Core rev: d48233cb1fd84f1061a8ba3c15bacc180e93934c) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r--meta/classes/buildhistory.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 8fc8a3ab08..cad5116ed5 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -444,7 +444,13 @@ buildhistory_list_pkg_files() {
444 # Create individual files-in-package for each recipe's package 444 # Create individual files-in-package for each recipe's package
445 for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do 445 for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
446 pkgname=$(basename ${pkgdir}) 446 pkgname=$(basename ${pkgdir})
447 outfile="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}/${file_prefix}${pkgname}.txt" 447 outfolder="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}"
448 outfile="${outfolder}/${file_prefix}${pkgname}.txt"
449 # Make sure the output folder, exist so we can create the files-in-$pkgname.txt file
450 if [ ! -d ${outfolder} ] ; then
451 bbdebug 2 "Folder ${outfolder} does not exist, file ${outfile} not created"
452 continue
453 fi
448 buildhistory_list_files ${pkgdir} ${outfile} 454 buildhistory_list_files ${pkgdir} ${outfile}
449 done 455 done
450} 456}