From 76bba2a1fc49d5e0a2123d2cc5521e2a3b87902f Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 15 Dec 2011 08:57:58 +0100 Subject: [PATCH] dracut.spec: only apply patches, if there are any --- dracut.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dracut.spec b/dracut.spec index 5325ff87..91b62ee3 100644 --- a/dracut.spec +++ b/dracut.spec @@ -161,6 +161,8 @@ This package contains tools to assemble the local initrd and host configuration. %prep %setup -q -n %{name}-%{version} + +%if %{defined PATCH1} git init git config user.email "dracut-maint@redhat.com" git config user.name "Fedora dracut team" @@ -169,6 +171,7 @@ git commit -a -q -m "%{version} baseline." # Apply all the patches. git am -p1 %{patches} +%endif %build make