From c78a0829597580aa7d35a87f1d51b56395b1ce1e Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Tue, 22 Nov 2011 10:36:27 -0500 Subject: [PATCH] Fix the baserelease sanity check We need to explicitly check for 0, so that we can do things like setting baserelease to 1.1 for scratch builds, etc. --- kernel.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel.spec b/kernel.spec index 97e03e5a0..c04d1b6f8 100644 --- a/kernel.spec +++ b/kernel.spec @@ -994,7 +994,7 @@ exit 1 %endif %endif -%if !%{baserelease} +%if "%{baserelease}" == "0" echo "baserelease must be greater than zero" exit 1 %endif