From: Felix Fietkau Date: Wed, 24 Oct 2007 15:58:19 +0000 (+0000) Subject: fix up downloading in python packages X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=023f0e05a5c46738a778c2b5a27679701100f2d9 fix up downloading in python packages SVN-Revision: 9427 --- diff --git a/lang/egenix-mx/Makefile b/lang/egenix-mx/Makefile index 2c9e0b1f18..3f894eef48 100644 --- a/lang/egenix-mx/Makefile +++ b/lang/egenix-mx/Makefile @@ -21,8 +21,8 @@ PKG_BUILD_DEPENDS:=python include $(INCLUDE_DIR)/package.mk -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) -ifeq ($(DUMP)$(Build/Compile/PyMod),) - $(error Python packaging code not found.) +ifneq ($(MAKECMDGOALS),download) + $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.)) endif define Package/python-egenix-mx diff --git a/lang/kid/Makefile b/lang/kid/Makefile index 19aa6ecc20..139cbad5ea 100644 --- a/lang/kid/Makefile +++ b/lang/kid/Makefile @@ -19,8 +19,8 @@ PKG_BUILD_DEPENDS:=python include $(INCLUDE_DIR)/package.mk -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) -ifeq ($(DUMP)$(Build/Compile/PyMod),) - $(error Python packaging code not found.) +ifneq ($(MAKECMDGOALS),download) + $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.)) endif define Package/python-kid diff --git a/lang/psycopg/Makefile b/lang/psycopg/Makefile index a1fdb491a2..a1f32248fb 100644 --- a/lang/psycopg/Makefile +++ b/lang/psycopg/Makefile @@ -19,8 +19,8 @@ PKG_BUILD_DEPENDS:=python include $(INCLUDE_DIR)/package.mk -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) -ifeq ($(DUMP)$(Build/Compile/PyMod),) - $(error Python packaging code not found.) +ifneq ($(MAKECMDGOALS),download) + $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.)) endif define Package/python-psycopg diff --git a/lang/pyevent/Makefile b/lang/pyevent/Makefile index 63e1fd1b82..0a48e49d04 100644 --- a/lang/pyevent/Makefile +++ b/lang/pyevent/Makefile @@ -19,8 +19,8 @@ PKG_BUILD_DEPENDS:=python include $(INCLUDE_DIR)/package.mk -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) -ifeq ($(DUMP)$(Build/Compile/PyMod),) - $(error Python packaging code not found.) +ifneq ($(MAKECMDGOALS),download) + $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.)) endif define Package/python-event diff --git a/lang/pymysql/Makefile b/lang/pymysql/Makefile index 868643bb64..2375f6faa9 100644 --- a/lang/pymysql/Makefile +++ b/lang/pymysql/Makefile @@ -19,8 +19,8 @@ PKG_BUILD_DEPENDS:=python include $(INCLUDE_DIR)/package.mk -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) -ifeq ($(DUMP)$(Build/Compile/PyMod),) - $(error Python packaging code not found.) +ifneq ($(MAKECMDGOALS),download) + $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.)) endif define Package/python-mysql diff --git a/lang/pypcap/Makefile b/lang/pypcap/Makefile index 46adf696b1..ba7933f342 100644 --- a/lang/pypcap/Makefile +++ b/lang/pypcap/Makefile @@ -19,8 +19,8 @@ PKG_BUILD_DEPENDS:=python include $(INCLUDE_DIR)/package.mk -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) -ifeq ($(DUMP)$(Build/Compile/PyMod),) - $(error Python packaging code not found.) +ifneq ($(MAKECMDGOALS),download) + $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.)) endif define Package/python-pcap diff --git a/lang/pysqlite/Makefile b/lang/pysqlite/Makefile index bade7b3237..e9431198ef 100644 --- a/lang/pysqlite/Makefile +++ b/lang/pysqlite/Makefile @@ -19,8 +19,8 @@ PKG_BUILD_DEPENDS:=python include $(INCLUDE_DIR)/package.mk -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) -ifeq ($(DUMP)$(Build/Compile/PyMod),) - $(error Python packaging code not found.) +ifneq ($(MAKECMDGOALS),download) + $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.)) endif define Package/python-sqlite diff --git a/lang/twisted/Makefile b/lang/twisted/Makefile index 799e826ff9..6cab30276a 100644 --- a/lang/twisted/Makefile +++ b/lang/twisted/Makefile @@ -21,8 +21,8 @@ PKG_BUILD_DEPENDS:=python include $(INCLUDE_DIR)/package.mk -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) -ifeq ($(DUMP)$(Build/Compile/PyMod),) - $(error Python packaging code not found.) +ifneq ($(MAKECMDGOALS),download) + $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.)) endif define Package/twisted/default diff --git a/lang/yapsnmp/Makefile b/lang/yapsnmp/Makefile index 851fe9f14d..8ba8149146 100644 --- a/lang/yapsnmp/Makefile +++ b/lang/yapsnmp/Makefile @@ -19,8 +19,8 @@ PKG_BUILD_DEPENDS:=python include $(INCLUDE_DIR)/package.mk -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) -ifeq ($(DUMP)$(Build/Compile/PyMod),) - $(error Python packaging code not found.) +ifneq ($(MAKECMDGOALS),download) + $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.)) endif define Package/python-yapsnmp diff --git a/utils/rdiff-backup/Makefile b/utils/rdiff-backup/Makefile index 74d2c9800c..537ee20e14 100644 --- a/utils/rdiff-backup/Makefile +++ b/utils/rdiff-backup/Makefile @@ -17,7 +17,10 @@ PKG_SOURCE_URL:=http://savannah.nongnu.org/download/rdiff-backup/ PKG_MD5SUM:=756b38aaf2602d097cafd08996fb7887 include $(INCLUDE_DIR)/package.mk --include $(TOPDIR)/package/python/python-package.mk +-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) +ifneq ($(MAKECMDGOALS),download) + $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.)) +endif define PyPackage/rdiff-backup SECTION:=utils diff --git a/utils/rrdtool/Makefile b/utils/rrdtool/Makefile index a376aeaa28..25035d9d06 100644 --- a/utils/rrdtool/Makefile +++ b/utils/rrdtool/Makefile @@ -19,7 +19,10 @@ PKG_MD5SUM:=dafa161bc9c61e57636a6085c87c1fe8 PKG_BUILD_DEPENDS:=libnotimpl python-core include $(INCLUDE_DIR)/package.mk --include $(if $(DUMP),,./python-package.mk) +-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) +ifneq ($(MAKECMDGOALS),download) + $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.)) +endif define Package/rrdtool/Default SECTION:=utils