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:28:46
  Branch: OPENPKG_1_0_SOLID                Handle: 2002071016284600

  Modified files:           (Branch: OPENPKG_1_0_SOLID)
    openpkg-src/bind        bind.spec

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

  Summary:
    Revision    Changes     Path
    1.15.2.4    +5  -3      openpkg-src/bind/bind.spec
  ____________________________________________________________________________

  Index: openpkg-src/bind/bind.spec
  ============================================================
  $ cvs diff -u -r1.15.2.3 -r1.15.2.4 bind.spec
  --- openpkg-src/bind/bind.spec        4 Jul 2002 13:10:03 -0000       1.15.2.3
  +++ openpkg-src/bind/bind.spec        10 Jul 2002 15:28:46 -0000      1.15.2.4
  @@ -33,7 +33,7 @@
   Group:        DNS
   License:      GPL
   Version:      8.2.6
  -Release:      1.0.1
  +Release:      1.0.2
   
   #   list of sources
   Source0:      ftp://ftp.isc.org/isc/bind/src/%{version}/bind-src.tar.gz
  @@ -172,14 +172,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