From: Johan Oudinet Date: Wed, 5 Dec 2018 16:06:16 +0000 (+0100) Subject: package/pkg-rebar.mk: fix remove-rebar-config-dependencies X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab60ea293916dc61e6e2e4ffaa4ff0555386e02c;p=buildroot.git 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 --- 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