wix: fix the package build when not adding features
authorAugie Fackler <augie@google.com>
Tue, 02 Apr 2019 23:38:54 -0400
changeset 42053 429bed755ce1
parent 42052 15d2afa31e57
child 42054 399ed3e86a49
wix: fix the package build when not adding features Should have used ifdef, not if. Sigh. Differential Revision: https://phab.mercurial-scm.org/D6187
contrib/packaging/wix/mercurial.wxs
--- a/contrib/packaging/wix/mercurial.wxs	Mon Apr 01 19:02:24 2019 -0700
+++ b/contrib/packaging/wix/mercurial.wxs	Tue Apr 02 23:38:54 2019 -0400
@@ -129,7 +129,7 @@
         <MergeRef Id='VCRuntime' />
         <MergeRef Id='VCRuntimePolicy' />
       </Feature>
-      <?if $(var.MercurialExtraFeatures)?>
+      <?ifdef MercurialExtraFeatures?>
         <?foreach EXTRAFEAT in $(var.MercurialExtraFeatures)?>
           <FeatureRef Id="$(var.EXTRAFEAT)" />
         <?endforeach?>