]> git.pld-linux.org Git - packages/mksh.git/commitdiff
do pdksh migration via trigger mksh-44 auto/th/mksh-44-8
authorElan Ruusamäe <glen@delfi.ee>
Tue, 6 Aug 2013 13:42:10 +0000 (16:42 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 6 Aug 2013 13:42:10 +0000 (16:42 +0300)
mksh.spec

index c8cddd9b0cc2d66a9e30512f7025ef5d48811799..ae370fcbbfcb0a00a0ec245789898d72d25e2c12 100644 (file)
--- a/mksh.spec
+++ b/mksh.spec
@@ -7,7 +7,7 @@ Summary:        MirBSD Korn Shell
 Summary(pl.UTF-8):     Powłoka Korna z MirBSD
 Name:          mksh
 Version:       44
-Release:       7
+Release:       8
 License:       BSD
 Group:         Applications/Shells
 Source0:       http://www.mirbsd.org/MirOS/dist/mir/mksh/%{name}-R%{version}.tgz
@@ -197,11 +197,14 @@ rm -rf $RPM_BUILD_ROOT
 %post   -p %add_etc_shells -p /bin/sh /bin/ksh /bin/mksh
 %preun  -p %remove_etc_shells -p /bin/sh /bin/ksh /bin/mksh
 
-%posttrans -p %add_etc_shells -p /bin/sh /bin/ksh /bin/mksh
-
 %post  static -p %add_etc_shells -p /bin/mksh.static
 %preun static -p %remove_etc_shells -p /bin/mksh.static
 
+%triggerpostun -p <lua> -- pdksh
+if arg[2] ~= 0 then
+%add_etc_shells /bin/sh /bin/ksh /bin/mksh
+end
+
 %files
 %defattr(644,root,root,755)
 %doc dot.mkshrc
This page took 0.061177 seconds and 4 git commands to generate.