- Fix set default script

This commit is contained in:
Ray Strode 2009-03-06 23:08:10 +00:00
parent a4c75fd9fb
commit 7c0f571381
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,24 @@
diff -up plymouth-0.7.0/scripts/plymouth-set-default-plugin.fix-set-default plymouth-0.7.0/scripts/plymouth-set-default-plugin
--- plymouth-0.7.0/scripts/plymouth-set-default-plugin.fix-set-default 2009-03-06 18:05:04.348305491 -0500
+++ plymouth-0.7.0/scripts/plymouth-set-default-plugin 2009-03-06 18:05:16.368307465 -0500
@@ -139,6 +139,6 @@ fi
(cd ${LIBDIR}/plymouth;
ln -sf ${PLUGIN_NAME}.so default.so && \
- [ $DO_INITRD_REBUILD -ne 0 ] && \
- $LIBEXECDIR/plymouth/plymouth-update-initrd)
+ ([ $DO_INITRD_REBUILD -ne 0 ] && \
+ $LIBEXECDIR/plymouth/plymouth-update-initrd) || :)
diff -up plymouth-0.7.0/scripts/plymouth-set-default-plugin.in.fix-set-default plymouth-0.7.0/scripts/plymouth-set-default-plugin.in
--- plymouth-0.7.0/scripts/plymouth-set-default-plugin.in.fix-set-default 2009-03-06 18:04:48.494054716 -0500
+++ plymouth-0.7.0/scripts/plymouth-set-default-plugin.in 2009-03-06 18:04:58.738052455 -0500
@@ -139,6 +139,6 @@ fi
(cd ${LIBDIR}/plymouth;
ln -sf ${PLUGIN_NAME}.so default.so && \
- [ $DO_INITRD_REBUILD -ne 0 ] && \
- $LIBEXECDIR/plymouth/plymouth-update-initrd)
+ ([ $DO_INITRD_REBUILD -ne 0 ] && \
+ $LIBEXECDIR/plymouth/plymouth-update-initrd) || :)

View File

@ -5,7 +5,7 @@
Summary: Graphical Boot Animation and Logger Summary: Graphical Boot Animation and Logger
Name: plymouth Name: plymouth
Version: 0.7.0 Version: 0.7.0
Release: 0.2009.03.06.1%{?dist} Release: 0.2009.03.06.2%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Base Group: System Environment/Base
Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2 Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
@ -19,6 +19,7 @@ Requires(post): plymouth-scripts
Requires: initscripts >= 8.83-1 Requires: initscripts >= 8.83-1
Obsoletes: plymouth-text-and-details-only < %{version}-%{release} Obsoletes: plymouth-text-and-details-only < %{version}-%{release}
Patch0: plymouth-0.7.0-fix-set-default.patch
%description %description
Plymouth provides an attractive graphical boot animation in Plymouth provides an attractive graphical boot animation in
@ -149,6 +150,7 @@ Plymouth. It features a blue flamed sun with animated solar flares.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .fix-set-default
%build %build
%configure --enable-tracing --disable-tests --without-boot-entry \ %configure --enable-tracing --disable-tests --without-boot-entry \
@ -319,6 +321,9 @@ fi
%defattr(-, root, root) %defattr(-, root, root)
%changelog %changelog
* Fri Mar 6 2009 Ray Strode <rstrode@redhat.com> 0.7.0-0.2009.03.06.2
- Fix set default script
* Fri Mar 6 2009 Ray Strode <rstrode@redhat.com> 0.7.0-0.2009.03.06.1 * Fri Mar 6 2009 Ray Strode <rstrode@redhat.com> 0.7.0-0.2009.03.06.1
- more scriptlet changes to move from solar to spinfinity - more scriptlet changes to move from solar to spinfinity