X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/643f013d152805f989115a71a8d19b02d01320a4..9fb66acf6351fde2162c690b2e238f4c438febb0:/include/unpack.mk diff --git a/include/unpack.mk b/include/unpack.mk index 10e6c25bf..500aada46 100644 --- a/include/unpack.mk +++ b/include/unpack.mk @@ -20,14 +20,13 @@ ifeq ($(strip $(PKG_UNPACK)),) ifeq ($(filter gz tgz,$(EXT)),$(EXT)) EXT:=$(call ext,$(PKG_SOURCE:.$(EXT)=)) - UNPACK:=$(ZCAT) $(DL_DIR)/$(PKG_SOURCE) | + UNPACK:=gzip -dc $(DL_DIR)/$(PKG_SOURCE) | endif ifeq ($(filter bzip2 bz2 bz tbz2 tbz,$(EXT)),$(EXT)) EXT:=$(call ext,$(PKG_SOURCE:.$(EXT)=)) UNPACK:=bzcat $(DL_DIR)/$(PKG_SOURCE) | endif ifeq ($(filter tgz tbz tbz2,$(EXT1)),$(EXT1)) - $(error FOO: $(filter tgz tbz tbz2,$(EXT1)),$(EXT1)) EXT:=tar endif UNPACK ?= cat $(DL_DIR)/$(PKG_SOURCE) | @@ -43,15 +42,15 @@ ifeq ($(strip $(PKG_UNPACK)),) endif # compatibility code for packages that set PKG_CAT - ifeq ($(strip $(PKG_CAT)$(PKG_UNPACK)),) + ifeq ($(strip $(PKG_UNPACK)),) # use existing PKG_CAT PKG_UNPACK:=$(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | $(TAR_CMD) ifeq ($(PKG_CAT),unzip) PKG_UNPACK:=$(UNZIP_CMD) endif - # replace zcat with $(ZCAT), because some system have it as gzcat + # replace zcat with $(ZCAT), because some system don't support it properly ifeq ($(PKG_CAT),zcat) - PKG_UNPACK:=$(ZCAT) $(DL_DIR)/$(PKG_SOURCE) | $(TAR_CMD) + PKG_UNPACK:=gzip -dc $(DL_DIR)/$(PKG_SOURCE) | $(TAR_CMD) endif endif ifneq ($(strip $(CRLF_WORKAROUND)),)