From: Harald Hoyer Date: Thu, 15 Dec 2011 07:57:58 +0000 (+0100) Subject: dracut.spec: only apply patches, if there are any X-Git-Tag: 014~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76bba2a1fc49d5e0a2123d2cc5521e2a3b87902f;p=thirdparty%2Fdracut.git dracut.spec: only apply patches, if there are any --- diff --git a/dracut.spec b/dracut.spec index 5325ff87d..91b62ee32 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