Comment 13 for bug 1555843

Revision history for this message
Steve Langasek (vorlon) wrote :

+ifeq ($(WITH_UNIVERSE),yes)
+DH_OPTIONS+=$(addprefix -N,$(shell dh_listpackages | grep -v $(addprefix -e ,$(UNIVERSE_PACKAGES))))
+else
+DH_OPTIONS+=$(addprefix -N,$(shell dh_listpackages | grep $(addprefix -e ,$(UNIVERSE_PACKAGES))))
+endif

debhelper also supports -p options to specify which packages it works on, as opposed to -N to specify packages to exclude. Couldn't this be written more succinctly as:

 ifeq ($(WITH_UNIVERSE),yes)
 DH_OPTIONS+=$(addprefix -p,$(UNIVERSE_PACKAGES))
 else
 DH_OPTIONS+=$(addprefix -N,$(UNIVERSE_PACKAGES))
 endif

?