From 179282412f6fb31ae0121da11d39b75d15c89945 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Fri, 18 Nov 2005 23:33:25 +0000 Subject: [PATCH] fix scriptlet hell. --- NetworkManager.spec | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/NetworkManager.spec b/NetworkManager.spec index 81676c8..74a8262 100644 --- a/NetworkManager.spec +++ b/NetworkManager.spec @@ -15,7 +15,7 @@ ExcludeArch: s390 s390x Name: NetworkManager Summary: Network connection manager and user applications Version: 0.5.1 -Release: 3%{?nm_cvs_version} +Release: 4%{?nm_cvs_version} Group: System Environment/Base License: GPL URL: http://www.gnome.org/projects/NetworkManager/ @@ -130,8 +130,10 @@ make install DESTDIR=$RPM_BUILD_ROOT %post -/sbin/chkconfig --add NetworkManager -/sbin/chkconfig --add NetworkManagerDispatcher +if [ "$1" == "1" ]; then + /sbin/chkconfig --add NetworkManager + /sbin/chkconfig --add NetworkManagerDispatcher +fi %preun if [ $1 -eq 0 ]; then @@ -142,13 +144,6 @@ if [ $1 -eq 0 ]; then /sbin/chkconfig --del NetworkManagerDispatcher fi - -%postun -if [ $1 -ge 1 ]; then - /sbin/service NetworkManager condrestart >/dev/null 2>&1 - /sbin/service NetworkManagerDispatcher condrestart >/dev/null 2>&1 -fi - %post gnome touch --no-create %{_datadir}/icons/hicolor if [ -x /usr/bin/gtk-update-icon-cache ]; then @@ -197,6 +192,9 @@ fi %changelog +* Fri Nov 18 2005 Peter Jones - 0.5.1-4 +- Don't kill the network connection when you upgrade the package. + * Fri Oct 21 2005 Christopher Aillon - 0.5.1-3 - Split out the -glib subpackage to have a -glib-devel package as well - Add epoch to version requirements for bind and wireless-tools