OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-registry                 Date:   09-Aug-2006 13:30:17
  Branch: HEAD                             Handle: 2006080912301700

  Modified files:
    openpkg-registry        register.sh

  Log:
    try overwriting all affected regular files for "wipe" even when
    permissions are not sufficient. Producing an error messager is
    preferred over silent ignorance in this case.

  Summary:
    Revision    Changes     Path
    1.54        +4  -4      openpkg-registry/register.sh
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-registry/register.sh
  ============================================================================
  $ cvs diff -u -r1.53 -r1.54 register.sh
  --- openpkg-registry/register.sh      9 Aug 2006 11:26:41 -0000       1.53
  +++ openpkg-registry/register.sh      9 Aug 2006 11:30:17 -0000       1.54
  @@ -270,7 +270,7 @@
   preparation()
   {
       if [ ".$REGISTRY_MODE" = .wipe ]; then
  -        [ ".$REGISTRY_PREP" != . -a -w $REGISTRY_PREP ] && cat </dev/null 
>$REGISTRY_PREP
  +        [ ".$REGISTRY_PREP" != . -f $REGISTRY_PREP ] && cat </dev/null 
>$REGISTRY_PREP
           return
       fi
   
  @@ -338,7 +338,7 @@
   transaction()
   {
       if [ ".$REGISTRY_MODE" = .wipe ]; then
  -        [ ".$REGISTRY_TRAN" != . -a -w $REGISTRY_TRAN ] && cat </dev/null 
>$REGISTRY_TRAN
  +        [ ".$REGISTRY_TRAN" != . -f $REGISTRY_TRAN ] && cat </dev/null 
>$REGISTRY_TRAN
           return
       fi
   
  @@ -385,7 +385,7 @@
   utilization()
   {
       if [ ".$REGISTRY_MODE" = .wipe ]; then
  -        [ ".$REGISTRY_UTIL" != . -a -w $REGISTRY_UTIL ] && cat </dev/null 
>$REGISTRY_UTIL
  +        [ ".$REGISTRY_UTIL" != . -f $REGISTRY_UTIL ] && cat </dev/null 
>$REGISTRY_UTIL
           return
       fi
   
  @@ -435,7 +435,7 @@
   interaction()
   {
       if [ ".$REGISTRY_MODE" = .wipe ]; then
  -        [ ".$REGISTRY_CONF" != . -a -w $REGISTRY_CONF ] && cat </dev/null 
>$REGISTRY_CONF
  +        [ ".$REGISTRY_CONF" != . -f $REGISTRY_CONF ] && cat </dev/null 
>$REGISTRY_CONF
           return
       fi
   
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to