OpenPKG CVS Repository
  http://www.openpkg.org/cvsweb/cvsweb.cgi
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Christoph Schug
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   10-Jul-2002 17:29:51
  Branch: HEAD                             Handle: 2002071016295100

  Modified files:
    openpkg-src/bind8       bind8.spec

  Log:
    Fixed broken upgrade if no bind daemon is running at all.

  Summary:
    Revision    Changes     Path
    1.9         +5  -3      openpkg-src/bind8/bind8.spec
  ____________________________________________________________________________

  Index: openpkg-src/bind8/bind8.spec
  ============================================================
  $ cvs diff -u -r1.8 -r1.9 bind8.spec
  --- openpkg-src/bind8/bind8.spec      4 Jul 2002 13:10:47 -0000       1.8
  +++ openpkg-src/bind8/bind8.spec      10 Jul 2002 15:29:51 -0000      1.9
  @@ -33,7 +33,7 @@
   Group:        DNS
   License:      GPL
   Version:      8.3.3
  -Release:      20020704
  +Release:      20020710
   
   #   list of sources
   Source0:      ftp://ftp.isc.org/isc/bind/src/%{version}/bind-src.tar.gz
  @@ -170,14 +170,16 @@
       if [ $1 -gt 1 ]; then
           #   stop daemon before any upgrade
           ls >/dev/null 2>&1 $RPM_INSTALL_PREFIX/var/bind/ndc \
  -            && $RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1
  +            && $RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1 \
  +            || true
       fi
   
   %preun
       if [ $1 -eq 0 ]; then
           #   stop daemon before removing package
           ls >/dev/null 2>&1 $RPM_INSTALL_PREFIX/var/bind/ndc \
  -            && $RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1
  +            && $RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1 \
  +            || true
           #   remove dynamically generated files
           rm -f $RPM_INSTALL_PREFIX/var/bind/*
       fi
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to