From 9b33a74450341f8bffcdb98df3f5b33d028ec9f6 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Mon, 15 Apr 2019 21:47:25 +0200 Subject: [PATCH] infra/pkg-download: get rid of the FLOCK variable The FLOCK variable is context-dependent, and expects the PKG variable to be set to the current package. This is not so nice. Besides, it is used in a single location. Get rid of this intermediate variable, and directly use flock where we need it. Signed-off-by: "Yann E. MORIN" Cc: Thomas De Schampheleire Cc: Thomas Petazzoni Cc: Arnout Vandecappelle Cc: Maxime Hadjinlian Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/pkg-download.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/pkg-download.mk b/package/pkg-download.mk index 623caf9325..96a12b1f2e 100644 --- a/package/pkg-download.mk +++ b/package/pkg-download.mk @@ -18,7 +18,6 @@ export SCP := $(call qstrip,$(BR2_SCP)) export LOCALFILES := $(call qstrip,$(BR2_LOCALFILES)) DL_WRAPPER = support/download/dl-wrapper -FLOCK = flock $($(PKG)_DL_DIR)/ # DL_DIR may have been set already from the environment ifeq ($(origin DL_DIR),undefined) @@ -99,7 +98,7 @@ endif define DOWNLOAD $(Q)mkdir -p $($(PKG)_DL_DIR) - $(Q)$(EXTRA_ENV) $(FLOCK) $(DL_WRAPPER) \ + $(Q)$(EXTRA_ENV) flock $($(PKG)_DL_DIR)/ $(DL_WRAPPER) \ -c '$($(PKG)_DL_VERSION)' \ -d '$($(PKG)_DL_DIR)' \ -D '$(DL_DIR)' \ -- 2.30.2