python,python3: Fix calling default PyPackage/install
authorJeffery To <jeffery.to@gmail.com>
Mon, 18 Feb 2019 08:23:45 +0000 (16:23 +0800)
committerJeffery To <jeffery.to@gmail.com>
Mon, 18 Feb 2019 08:33:26 +0000 (16:33 +0800)
This fixes Package/*/install to call PyPackage/*/install correctly.
Previously, if a package used the default PyPackage/*/install, then it
would not called. (A custom-defined PyPackage/*/install would be called
with no issue.)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/python-package.mk
lang/python/python3-package.mk

index af35dcdb32b096dda977c1eeb24cdb289d5184e5..260c9896867668d4b9241830a5dc6c9ede9647b3 100644 (file)
@@ -68,7 +68,7 @@ define PyPackage
   $(call shexport,PyPackage/$(1)/filespec)
 
   define Package/$(1)/install
-       $(call PyPackage/$(1)/install,$$(1))
+       $$(call PyPackage/$(1)/install,$$(1))
        $(SHELL) $(python_mk_path)python-package-install.sh "2" \
                "$(PKG_INSTALL_DIR)" "$$(1)" \
                "$(HOST_PYTHON_BIN)" "$$(2)" \
index 9cfa7673e7281f19e19d6a8bb5d42c632931cb88..8999665469b19bd485aa8926b670e88e74d1ebbb 100644 (file)
@@ -67,7 +67,7 @@ define Py3Package
   $(call shexport,Py3Package/$(1)/filespec)
 
   define Package/$(1)/install
-       $(call Py3Package/$(1)/install,$$(1))
+       $$(call Py3Package/$(1)/install,$$(1))
        $(SHELL) $(python3_mk_path)python-package-install.sh "3" \
                "$(PKG_INSTALL_DIR)" "$$(1)" \
                "$(HOST_PYTHON3_BIN)" "$$(2)" \