From 5430a62a8de21db02bdc28b2ee31d833837b5ff4 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 18 Feb 2017 07:15:15 +0900 Subject: [PATCH] do not fail id (ABI) check if package uninstalled --- ghc.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc.spec b/ghc.spec index e4bba12..7046a6a 100644 --- a/ghc.spec +++ b/ghc.spec @@ -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