mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
classes/buildhistory: tweak buildhistory_list_pkg_files
* Avoid using ${...} for shell variables (since they could be
expanded as bitbake variables if present)
* Use files-in-package.txt rather than files-in-<packagename>.txt; the
file is already in a subdirectory named with the package name and this
naming is consistent with that of files-in-image.txt.
(From OE-Core rev: 6f3992728613c39403ef59bbcf1cb67d9e8c526b)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5d34d3257a
commit
1bfae0fd81
@@ -439,16 +439,14 @@ buildhistory_list_files() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
buildhistory_list_pkg_files() {
|
buildhistory_list_pkg_files() {
|
||||||
file_prefix="files-in-"
|
|
||||||
|
|
||||||
# Create individual files-in-package for each recipe's package
|
# Create individual files-in-package for each recipe's package
|
||||||
for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
|
for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
|
||||||
pkgname=$(basename ${pkgdir})
|
pkgname=$(basename $pkgdir)
|
||||||
outfolder="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}"
|
outfolder="${BUILDHISTORY_DIR_PACKAGE}/$pkgname"
|
||||||
outfile="${outfolder}/${file_prefix}${pkgname}.txt"
|
outfile="$outfolder/files-in-package.txt"
|
||||||
# Make sure the output folder, exist so we can create the files-in-$pkgname.txt file
|
# Make sure the output folder exists so we can create the file
|
||||||
if [ ! -d ${outfolder} ] ; then
|
if [ ! -d $outfolder ] ; then
|
||||||
bbdebug 2 "Folder ${outfolder} does not exist, file ${outfile} not created"
|
bbdebug 2 "Folder $outfolder does not exist, file $outfile not created"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
buildhistory_list_files ${pkgdir} ${outfile}
|
buildhistory_list_files ${pkgdir} ${outfile}
|
||||||
|
|||||||
Reference in New Issue
Block a user