From ab60ea293916dc61e6e2e4ffaa4ff0555386e02c Mon Sep 17 00:00:00 2001 From: Johan Oudinet Date: Wed, 5 Dec 2018 17:06:16 +0100 Subject: [PATCH] package/pkg-rebar.mk: fix remove-rebar-config-dependencies Handle the case where there is only one dependency described in rebar.config, so when the line starts by '{deps' and ends by '}.'. Before it was deleting this line but also all next lines until finding a line that ends by '}.'. Signed-off-by: Johan Oudinet Signed-off-by: Thomas Petazzoni --- package/pkg-rebar.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/pkg-rebar.mk b/package/pkg-rebar.mk index b6b095929c..838e7681de 100644 --- a/package/pkg-rebar.mk +++ b/package/pkg-rebar.mk @@ -96,7 +96,8 @@ endef # Remove the "deps" statement from a rebar.config file define remove-rebar-config-dependencies - $(SED) '/^{deps/,/}\.$$/d' $($(PKG)_DIR)/rebar.config + $(SED) '/^{deps.*}\.$$/d' -e '/^{deps/,/}\.$$/d' \ + $($(PKG)_DIR)/rebar.config endef -- 2.30.2