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>
# 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
}