- If /sbin/ldconfig is not the only action for a scriptlet, the -p
option should not be used.
- If the 'with multi user' option is not true, the shell conditional
will be invalid.
This commit fixes both issues.
Change-Id: Ia610aad0576b9132a60f26063cbb35345ed58f92
+* Mon Aug 12 2013 Patrick McCarty <patrick.mccarty@linux.intel.com> 91a6684
+- packaging: fix errors in %preun and %postun scriptlets
+
* Fri Aug 02 2013 Baptiste DURAND <baptiste.durand@eurogiciel.fr> accepted/tizen/20130731.144156@ab708cb
- Add build Option for multi-user support
%endif
%preun
-if [ $1 == 0 ]; then
%if !%{with multi_user}
+if [ $1 == 0 ]; then
systemctl stop launchpad-preload@app.service
systemctl stop ac.service
-%endif
fi
+%endif
%post
/sbin/ldconfig
fi
%endif
-%postun -p /sbin/ldconfig
+%postun
+/sbin/ldconfig
%if !%{with multi_user}
systemctl daemon-reload
%endif