do not fail id (ABI) check if package uninstalled

This commit is contained in:
Jens Petersen 2017-02-18 07:15:15 +09:00
parent 494c76ae55
commit 51ebe87923
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ make test
%if %{undefined ghc_bootstrapping}
echo "Checking package ABI hashes:"
for i in %{ghc_packages_list}; do
old=$(ghc-pkg field $i id --simple-output)
old=$(ghc-pkg field $i id --simple-output || :)
if [ -n "$old" ]; then
new=$(/usr/lib/rpm/ghc-pkg-wrapper %{buildroot}%{ghclibdir} field $i id --simple-output)
if [ "$old" != "$new" ]; then