Changeset 18812 for trunk/base


Ignore:
Timestamp:
Jul 30, 2006, 2:39:28 AM (14 years ago)
Author:
jmpp
Message:

Submitted by: jmpp@

Proper error detection for my recent chmod addition to the 'sync' target.

PS: I'd like to put this in 1.3.1, so please comment ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/darwinports1.0/darwinports.tcl

    r18807 r18812  
    11# darwinports.tcl
    2 # $Id: darwinports.tcl,v 1.214 2006/07/29 17:48:27 jmpp Exp $
     2# $Id: darwinports.tcl,v 1.215 2006/07/30 02:39:28 jmpp Exp $
    33#
    44# Copyright (c) 2002 Apple Computer, Inc.
     
    10971097                                        return -code error "sync failed doing rsync"
    10981098                                }
    1099                                 system "chmod -R a+r \"$destdir\""
     1099                                if {[catch {system "chmod -R a+r \"$destdir\""}]} {
     1100                                    return -code error "Setting world read permissions on \"$destdir\" failed, need root?"
     1101                                }
    11001102                        }
    11011103                        {^https?$|^ftp$} {
Note: See TracChangeset for help on using the changeset viewer.