Fail the build if RPM DB is corrupted (that is common for RPM5)

This commit is contained in:
Mikhail Novosyolov 2020-02-01 23:39:02 +03:00
parent d492e85ddd
commit f2c9630e67
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
Summary: Tools for building live CDs Summary: Tools for building live CDs
Name: livecd-tools Name: livecd-tools
Version: 21.1 Version: 21.1
Release: 64 Release: 65
Epoch: 1 Epoch: 1
License: GPLv2+ License: GPLv2+
Group: System/Base Group: System/Base

View file

@ -43,8 +43,8 @@ diagnostics(){
chroot "$rpmRoot" /bin/rpm -q ${packagesList_orig} chroot "$rpmRoot" /bin/rpm -q ${packagesList_orig}
# Perform a check # Perform a check
# TODO: we should fail if there are errors, but will just print to log for now # Fail the build if RPM DB is corrupted (that is common for RPM5)
chroot "$rpmRoot" /bin/rpm -Va || : chroot "$rpmRoot" /bin/rpm -Va
} }
process_packages(){ process_packages(){