]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/buildhistory: tweak buildhistory_list_pkg_files
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 21 Aug 2015 09:50:57 +0000 (10:50 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 30 Aug 2015 11:34:38 +0000 (12:34 +0100)
* 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.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/buildhistory.bbclass

index 054a81fdfc56015c2c82f0041d4ccf6577bfe5f9..3d459c715a6848447b23a7273e6b3e2267117693 100644 (file)
@@ -439,16 +439,14 @@ buildhistory_list_files() {
 }
 
 buildhistory_list_pkg_files() {
-       file_prefix="files-in-"
-
        # Create individual files-in-package for each recipe's package
        for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
-               pkgname=$(basename ${pkgdir})
-               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"
+               pkgname=$(basename $pkgdir)
+               outfolder="${BUILDHISTORY_DIR_PACKAGE}/$pkgname"
+               outfile="$outfolder/files-in-package.txt"
+               # Make sure the output folder exists so we can create the file
+               if [ ! -d $outfolder ] ; then
+                       bbdebug 2 "Folder $outfolder does not exist, file $outfile not created"
                        continue
                fi
                buildhistory_list_files ${pkgdir} ${outfile}