From fec8cf850808e3e5bb74557071c4b12331168a83 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Sun, 17 Mar 2019 11:05:55 +0300 Subject: [PATCH] create rpm-qa.log even for failed builds --- build-rpm.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build-rpm.sh b/build-rpm.sh index 7270a4b..1598a0a 100755 --- a/build-rpm.sh +++ b/build-rpm.sh @@ -364,6 +364,10 @@ do fi done +echo '--> Create rpm -qa list' +CHROOT_PATH="$($MOCK_BIN --configdir=$config_dir --print-root-path)" +rpm --root="$CHROOT_PATH" -qa > "$OUTPUT_FOLDER/rpm-qa.log" + # Check exit code after build if [ $rc != 0 ]; then echo '--> Build failed: mock-urpm encountered a problem.' @@ -379,9 +383,6 @@ echo '--> Done.' # Extract rpmlint logs into separate file echo "--> Grepping rpmlint logs from $OUTPUT_FOLDER/build.log to $OUTPUT_FOLDER/rpmlint.log" sed -n "/Executing \"\/usr\/bin\/rpmlint/,/packages and.*specfiles checked/p" $OUTPUT_FOLDER/build.log > $OUTPUT_FOLDER/rpmlint.log -echo '--> Create rpm -qa list' -CHROOT_PATH=$($MOCK_BIN --configdir=$config_dir --print-root-path) -rpm --root=$CHROOT_PATH -qa >> $OUTPUT_FOLDER/rpm-qa.log # (tpg) Save build chroot if [ "${rc}" != 0 ] && [ "${save_buildroot}" = 'true' ]; then