Skip to contentSkip to conversation

sstate-diff-machines.sh: support rpm, deb and tar package types in analysis

PATCH New Diego Santa Cruz 1 participant 1 message Mar 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sstate-diff-machines.sh: support rpm, deb and tar package types in analysis

The sstate-diff-machines.sh script's --analyze option was only supporting ipk packages, this adds rpm, deb and tar packages, checking all the used package types simultaneously.

Without this changing sstate between machines would not report an error if the difference occured in packages and ipk packaging was not enabled.

---
 scripts/sstate-diff-machines.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
scripts/sstate-diff-machines.sh +3 -1
index 1d721eb87d..8b64e11be1 100755
@@ -127,6 +127,8 @@ for M in ${machines}; do
   fi
 done
 
+COMPARE_TASKS="do_configure.sigdata do_populate_sysroot.sigdata do_package_write_ipk.sigdata do_package_write_rpm.sigdata do_package_write_deb.sigdata do_package_write_tar.sigdata"
+
 function compareSignatures() {
   MACHINE1=$1
   MACHINE2=$2
@@ -134,7 +136,7 @@ function compareSignatures() {
   PRE_PATTERN=""
   [ -n "${PATTERN}" ] || PRE_PATTERN="-v"
   [ -n "${PATTERN}" ] || PATTERN="MACHINE"
-  for TASK in do_configure.sigdata do_populate_sysroot.sigdata do_package_write_ipk.sigdata; do
+  for TASK in $COMPARE_TASKS; do
     printf "\n\n === Comparing signatures for task ${TASK} between ${MACHINE1} and ${MACHINE2} ===\n" | tee -a ${OUTPUT}/signatures.${MACHINE2}.${TASK}.log
     diff ${OUTPUT}/${MACHINE1}/list.M ${OUTPUT}/${MACHINE2}/list.M | grep ${PRE_PATTERN} "${PATTERN}" | grep ${TASK} > ${OUTPUT}/signatures.${MACHINE2}.${TASK}
     for i in `cat ${OUTPUT}/signatures.${MACHINE2}.${TASK} | sed 's#[^/]*/\([^/]*\)/.*#\1#g' | sort -u | xargs`; do
Signature · 1 line
2.18.4