mirror of
https://tvoygit.ru/Djam/r11-builder-agent.git
synced 2025-02-23 18:32:46 +00:00
Merge pull request #3 from mikhailnov/show-versions
create rpm-qa.log even for failed builds
This commit is contained in:
commit
8054695a50
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue