Skip to content

Commit

Permalink
install-deps.sh: detect yum-builddep errors
Browse files Browse the repository at this point in the history
yum-builddep does not exit on error when an error happens: grep the
output for the error: string instead.

Signed-off-by: Loic Dachary <[email protected]>
  • Loading branch information
ldachary committed Jun 6, 2015
1 parent 34e4dd9 commit 739ef0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ CentOS|Fedora|RedHatEnterpriseServer)
;;
esac
sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
$SUDO yum-builddep -y $DIR/ceph.spec || exit 1
$SUDO yum-builddep -y $DIR/ceph.spec 2>&1 | tee $DIR/yum-builddep.out
! grep -q -i error: $DIR/yum-builddep.out || exit 1
;;
*SUSE*)
sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
Expand Down

0 comments on commit 739ef0f

Please sign in to comment.