Browse Source

Filter out the old OTP versions from LATEST_ERLANG_OTP

Loïc Hoguin 6 years ago
parent
commit
6c8664cc97
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/kerl.mk

+ 2 - 2
core/kerl.mk

@@ -49,8 +49,8 @@ distclean-kerl:
 # Allow users to select which version of Erlang/OTP to use for a project.
 # Allow users to select which version of Erlang/OTP to use for a project.
 
 
 ifneq ($(strip $(LATEST_ERLANG_OTP)),)
 ifneq ($(strip $(LATEST_ERLANG_OTP)),)
-ERLANG_OTP := $(notdir $(lastword $(sort $(filter-out %-rc1 %-rc2 %-rc3,\
-	$(wildcard $(KERL_INSTALL_DIR)/*[^-native])))))
+ERLANG_OTP := $(notdir $(lastword $(sort $(filter-out $(KERL_INSTALL_DIR)/OTP_R%,\
+	$(filter-out %-rc1 %-rc2 %-rc3,$(wildcard $(KERL_INSTALL_DIR)/*[^-native]))))))
 endif
 endif
 
 
 ERLANG_OTP ?=
 ERLANG_OTP ?=