X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=include%2Funpack.mk;h=500aada4620901b03dde1b09397addca3aee4b55;hp=b8349c9ca46d13e9f4ecf7792f97d3a0f7e4d471;hb=e1d5ac65fb00a0fce1d769ace768204c7cad64d8;hpb=3e84d07dc9b3d5da802c9aaeef347c79e31f8b99 diff --git a/include/unpack.mk b/include/unpack.mk index b8349c9ca4..500aada462 100644 --- a/include/unpack.mk +++ b/include/unpack.mk @@ -20,7 +20,7 @@ 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)=)) @@ -48,9 +48,9 @@ ifeq ($(strip $(PKG_UNPACK)),) 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)),)