build: fix installation of default-variant packages when the source package has multi...
authorFelix Fietkau <nbd@openwrt.org>
Wed, 12 Mar 2014 19:53:13 +0000 (19:53 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 12 Mar 2014 19:53:13 +0000 (19:53 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39899

package/Makefile

index f82654cf900a286289dc7cbc09750cdcaecc20ac..d46cb2ca0e3f63ea5e743e0d1c06869d9a3bbd65 100644 (file)
@@ -76,7 +76,7 @@ OPKG:= \
 PACKAGE_INSTALL_FILES:= \
        $(foreach pkg,$(sort $(package-y)), \
                $(foreach variant, \
-                       $(if $(package/$(pkg)/variants), \
+                       $(if $(strip $(package/$(pkg)/variants)), \
                                $(package/$(pkg)/variants), \
                                $(if $(package/$(pkg)/default-variant), \
                                        $(package/$(pkg)/default-variant), \