Merge pull request #3 from mikhailnov/show-versions

create rpm-qa.log even for failed builds
This commit is contained in:
Alexander Stefanov 2019-03-17 11:13:24 +03:00 committed by GitHub
commit 8054695a50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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