[packages/efi-shell] %post improved, %postun added

jajcus jajcus at pld-linux.org
Wed Oct 31 15:29:46 CET 2012


commit af5feaae61966c7e64cdf39baececae4c4f5b0f4
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Wed Oct 31 15:29:30 2012 +0100

    %post improved, %postun added

 efi-shell.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/efi-shell.spec b/efi-shell.spec
index 7aa95ad..4fad555 100644
--- a/efi-shell.spec
+++ b/efi-shell.spec
@@ -48,7 +48,10 @@ install UefiShell/X64/Shell.efi $RPM_BUILD_ROOT/lib/efi/x64
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/efi-boot-update --auto || :
+[ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || :
+
+%postun
+[ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || :
 
 %files ia32
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/efi-shell.git/commitdiff/af5feaae61966c7e64cdf39baececae4c4f5b0f4



More information about the pld-cvs-commit mailing list