Changeset 90054


Ignore:
Timestamp:
Feb 20, 2012, 9:23:50 AM (5 years ago)
Author:
dports@…
Message:

don't attempt to set permissions on the Xcode plist file if not
running as root

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/macports1.0/macports.tcl

    r90024 r90054  
    11721172                file mkdir "${target_homedir}/Library/Preferences"
    11731173                file copy -force $user_plist $target_dir
    1174                 file attributes "${target_dir}/com.apple.dt.Xcode.plist" -owner $macportsuser
    1175                 } result]} {
     1174                if {[getuid] == 0} {
     1175                    file attributes "${target_dir}/com.apple.dt.Xcode.plist" -owner $macportsuser
     1176                }
     1177        } result]} {
    11761178            ui_debug "Failed to copy com.apple.dt.Xcode.plist: $result"
    11771179        }
Note: See TracChangeset for help on using the changeset viewer.