From 699d7529245b9d72e019956b764eb80808e20a21 Mon Sep 17 00:00:00 2001 From: MatthieuBaratte Date: Tue, 13 Mar 2018 23:09:46 +0100 Subject: [PATCH] Bug 1429019 - Simplify the comparaison by removing the use of filter-out. r=glandium MozReview-Commit-ID: Fn83DBtVAqV --HG-- extra : rebase_source : f2e704a565c9b9a333e0bf219acfc63ef8549613 --- toolkit/mozapps/installer/upload-files.mk | 42 +++++++++++------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/toolkit/mozapps/installer/upload-files.mk b/toolkit/mozapps/installer/upload-files.mk index 4133ac5a3bca..131fa1e1be53 100644 --- a/toolkit/mozapps/installer/upload-files.mk +++ b/toolkit/mozapps/installer/upload-files.mk @@ -3,27 +3,27 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. ifndef MOZ_PKG_FORMAT -ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) -MOZ_PKG_FORMAT = DMG -else -ifeq (,$(filter-out WINNT, $(OS_ARCH))) -MOZ_PKG_FORMAT = ZIP -else -ifeq (,$(filter-out SunOS, $(OS_ARCH))) - MOZ_PKG_FORMAT = BZ2 -else - ifeq (,$(filter-out gtk3, $(MOZ_WIDGET_TOOLKIT))) - MOZ_PKG_FORMAT = BZ2 - else - ifeq (android,$(MOZ_WIDGET_TOOLKIT)) - MOZ_PKG_FORMAT = APK - else - MOZ_PKG_FORMAT = TGZ - endif - endif -endif -endif -endif + ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) + MOZ_PKG_FORMAT = DMG + else + ifeq (WINNT,$(OS_ARCH)) + MOZ_PKG_FORMAT = ZIP + else + ifeq (SunOS,$(OS_ARCH)) + MOZ_PKG_FORMAT = BZ2 + else + ifeq (gtk3,$(MOZ_WIDGET_TOOLKIT)) + MOZ_PKG_FORMAT = BZ2 + else + ifeq (android,$(MOZ_WIDGET_TOOLKIT)) + MOZ_PKG_FORMAT = APK + else + MOZ_PKG_FORMAT = TGZ + endif + endif + endif + endif + endif endif # MOZ_PKG_FORMAT ifeq ($(OS_ARCH),WINNT)