diff --git a/memtest86+.changes b/memtest86+.changes index a2648e4..a4b889e 100644 --- a/memtest86+.changes +++ b/memtest86+.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 10 12:57:40 CEST 2007 - duwe@suse.de + +- Do not fail to install if update-bootloader is not there. + ------------------------------------------------------------------- Thu Aug 9 18:34:00 CEST 2007 - duwe@suse.de diff --git a/memtest86+.spec b/memtest86+.spec index 1757ce2..4b33f76 100644 --- a/memtest86+.spec +++ b/memtest86+.spec @@ -11,7 +11,7 @@ Name: memtest86+ Version: 1.70 -Release: 30 +Release: 31 # License: BSD 3-Clause Group: System/Boot @@ -71,12 +71,14 @@ Authors: install -D -m 0644 memtest.bin $RPM_BUILD_ROOT/boot/memtest.bin %post -if [ "$YAST_IS_RUNNING" != instsys -a $1 = 1 ]; then +if [ "$YAST_IS_RUNNING" != instsys -a $1 = 1 -a \ + -x /sbin/update-bootloader ]; then /sbin/update-bootloader --add --image /boot/memtest.bin --name "Memory Test (memtest86+)" fi +true -%preun -/sbin/update-bootloader --remove --force --image /boot/memtest.bin +%postun +test -x /sbin/update-bootloader && /sbin/update-bootloader --remove --force --image /boot/memtest.bin || true %files %defattr(-,root,root) @@ -84,6 +86,8 @@ fi %doc README* changelog FAQ %changelog +* Fri Aug 10 2007 - duwe@suse.de +- Do not fail to install if update-bootloader is not there. * Thu Aug 09 2007 - duwe@suse.de - Add memtest86+ to boot menu even if installed later (Feature #301969)