Skip to content

Commit

Permalink
ruby-ng.eclass: make presence of RUBY_PATCHES fatal
Browse files Browse the repository at this point in the history
The eqawarn in EAPI 6 is easy to mis and may lead to patches
"silently" not being applied. die on this in EAPI 7 to make this
situation more explicit.

Signed-off-by: Hans de Graaff <[email protected]>
  • Loading branch information
graaff committed Jul 25, 2019
1 parent cda96c4 commit c37a064
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eclass/ruby-ng.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,16 @@ _ruby_apply_patches() {
fi
done
;;
*)
6)
if [[ -n ${RUBY_PATCHES[@]} ]]; then
eqawarn "RUBY_PATCHES is no longer supported, use PATCHES instead"
fi
;;
*)
if [[ -n ${RUBY_PATCHES[@]} ]]; then
die "RUBY_PATCHES is no longer supported, use PATCHES instead"
fi
;;
esac

# This is a special case: instead of executing just in the special
Expand Down

0 comments on commit c37a064

Please sign in to comment.