diff options
author | Loïc Hoguin <[email protected]> | 2013-08-15 15:35:53 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-08-15 15:35:53 +0200 |
commit | 8709a3593629c3dc732ee2a16be11a4e06943dca (patch) | |
tree | 5a74a195f1148e3d66a7de0f73f5c5628d4eed24 /erlang.mk | |
parent | 9a6989a611e860fc4e4aded98040e7616efb1308 (diff) | |
download | erlang.mk-8709a3593629c3dc732ee2a16be11a4e06943dca.tar.gz erlang.mk-8709a3593629c3dc732ee2a16be11a4e06943dca.tar.bz2 erlang.mk-8709a3593629c3dc732ee2a16be11a4e06943dca.zip |
Fix downloading of packages file when fetching pkg:// deps
Previous code was downloading it a for each dep that used pkg://.
Diffstat (limited to 'erlang.mk')
-rw-r--r-- | erlang.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -120,7 +120,7 @@ define get_dep ifeq (,$(findstring pkg://,$(word 1,$(dep_$(1))))) git clone -n -- $(word 1,$(dep_$(1))) $(DEPS_DIR)/$(1) else - $(if $(wildcard $(PKG_FILE)),,$(call get_pkg_file)) + if [ ! -f $(PKG_FILE) ]; then $(call get_pkg_file); fi git clone -n -- `awk 'BEGIN { FS = "\t" }; \ $$$$1 == "$(subst pkg://,,$(word 1,$(dep_$(1))))" { print $$$$2 }' \ $(PKG_FILE)` $(DEPS_DIR)/$(1) |