build: propagate package conflicts to opkg metadata
authorFelix Fietkau <nbd@openwrt.org>
Sun, 5 Oct 2014 16:41:38 +0000 (16:41 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 5 Oct 2014 16:41:38 +0000 (16:41 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42771

include/package-ipkg.mk

index 7cea44af656a9294ea34e94dca8bdee003f00dd5..a4901b583f5d5ff88f7a2ce9390e2ed748e7b73b 100644 (file)
@@ -160,6 +160,11 @@ ifeq ($(DUMP),)
                        DEPENDS=$$$${DEPENDS:+$$$$DEPENDS, }$$$${depend##+}; \
                done; \
                [ -z "$$$$DEPENDS" ] || echo "Depends: $$$$DEPENDS"; \
+               CONFLICTS=''; \
+               for conflict in $(CONFLICTS); do \
+                       CONFLICTS=$$$${CONFLICTS:+$$$$CONFLICTS, }$$$$conflict; \
+               done; \
+               [ -z "$$$$CONFLICTS" ] || echo "Conflicts: $$$$CONFLICTS"; \
                $(if $(PROVIDES), echo "Provides: $(PROVIDES)"; ) \
                echo "Source: $(SOURCE)"; \
                $(if $(PKG_LICENSE), echo "License: $(PKG_LICENSE)"; ) \