Skip to content

Commit

Permalink
Merge pull request #296 from o01eg/master
Browse files Browse the repository at this point in the history
Test RLS state according to rust-lang/rust#45098
  • Loading branch information
cnd authored Oct 27, 2017
2 parents 4928f26 + 2e8ea65 commit 730ad5d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dev-lang/rust/rust-9999-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ src_prepare() {

use amd64 && BUILD_TRIPLE=x86_64-unknown-linux-gnu
use x86 && BUILD_TRIPLE=i686-unknown-linux-gnu

if use tools; then
RLS_STATE=$(grep "rls *= *" src/tools/toolstate.toml | grep -Po '(?<=").*(?=")')
if [ "${RLS_STATE}" = "Broken" ];then
eerror "RLS is building but its state is $RLS_STATE. Consider to disable 'tools' USE-flag"
die "RLS is broken"
else
einfo "RLS state is $RLS_STATE."
fi
fi
}

src_unpack() {
Expand Down

0 comments on commit 730ad5d

Please sign in to comment.