buildhistory: fix typos

Fix some simple typos found while looking through the code.

(From OE-Core rev: c23cb2d89fcd014d1f08944468c7e2d8a7f3e8b0)

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ulrich Ölmann
2024-07-03 16:28:06 +02:00
committed by Richard Purdie
parent 56ba6da8e1
commit b2bc061f7c

View File

@@ -58,7 +58,7 @@ SSTATEPOSTUNPACKFUNCS:append = " buildhistory_emit_outputsigs"
sstate_installpkgdir[vardepsexclude] += "buildhistory_emit_outputsigs"
SSTATEPOSTUNPACKFUNCS[vardepvalueexclude] .= "| buildhistory_emit_outputsigs"
# All items excepts those listed here will be removed from a recipe's
# All items except those listed here will be removed from a recipe's
# build history directory by buildhistory_emit_pkghistory(). This is
# necessary because some of these items (package directories, files that
# we no longer emit) might be obsolete.
@@ -153,7 +153,7 @@ python buildhistory_emit_pkghistory() {
# Variables that need to be written to their own separate file
self.filevars = dict.fromkeys(['pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm'])
# Should check PACKAGES here to see if anything removed
# Should check PACKAGES here to see if anything was removed
def readPackageInfo(pkg, histfile):
pkginfo = PackageInfo(pkg)
@@ -535,7 +535,7 @@ buildhistory_get_installed() {
grep -v kernel-module $1/depends-nokernel-nolibc-noupdate.dot > $1/depends-nokernel-nolibc-noupdate-nomodules.dot
fi
# add complementary package information
# Add complementary package information
if [ -e ${WORKDIR}/complementary_pkgs.txt ]; then
cp ${WORKDIR}/complementary_pkgs.txt $1
fi
@@ -573,7 +573,7 @@ buildhistory_get_sdk_installed_target() {
buildhistory_list_files() {
# List the files in the specified directory, but exclude date/time etc.
# This is somewhat messy, but handles where the size is not printed for device files under pseudo
# This is somewhat messy, but handles cases where the size is not printed for device files under pseudo
( cd $1
find_cmd='find . ! -path . -printf "%M %-10u %-10g %10s %p -> %l\n"'
if [ "$3" = "fakeroot" ] ; then
@@ -587,7 +587,7 @@ buildhistory_list_files_no_owners() {
# List the files in the specified directory, but exclude date/time etc.
# Also don't output the ownership data, but instead output just - - so
# that the same parsing code as for _list_files works.
# This is somewhat messy, but handles where the size is not printed for device files under pseudo
# This is somewhat messy, but handles cases where the size is not printed for device files under pseudo
( cd $1
find_cmd='find . ! -path . -printf "%M - - %10s %p -> %l\n"'
if [ "$3" = "fakeroot" ] ; then
@@ -855,7 +855,7 @@ END
CMDLINE="${@buildhistory_get_cmdline(d)}"
if [ "$repostatus" != "" ] ; then
git add -A .
# porcelain output looks like "?? packages/foo/bar"
# Porcelain output looks like "?? packages/foo/bar"
# Ensure we commit metadata-revs with the first commit
buildhistory_single_commit "$CMDLINE" "$HOSTNAME" dummy
git gc --auto --quiet
@@ -990,7 +990,7 @@ def write_latest_ptest_result(d, histdir):
output_ptest = os.path.join(histdir, 'ptest')
if os.path.exists(input_ptest):
try:
# Lock it avoid race issue
# Lock it to avoid race issue
lock = bb.utils.lockfile(output_ptest + "/ptest.lock")
bb.utils.mkdirhier(output_ptest)
oe.path.copytree(input_ptest, output_ptest)