[60791] trunk/base/src/macports1.0/macports.tcl
snc at macports.org
snc at macports.org
Mon Nov 23 11:00:59 PST 2009
Revision: 60791
http://trac.macports.org/changeset/60791
Author: snc at macports.org
Date: 2009-11-23 11:00:56 -0800 (Mon, 23 Nov 2009)
Log Message:
-----------
add message regarding permissions for portdbpath, #17579
Modified Paths:
--------------
trunk/base/src/macports1.0/macports.tcl
Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl 2009-11-23 18:54:16 UTC (rev 60790)
+++ trunk/base/src/macports1.0/macports.tcl 2009-11-23 19:00:56 UTC (rev 60791)
@@ -633,7 +633,10 @@
if {$portarchivemode == "yes"} {
if {![file isdirectory $portarchivepath]} {
if {![file exists $portarchivepath]} {
- if {[catch {file mkdir $portarchivepath} result]} {
+ if {![file owned $portdbpath]} {
+ file lstat $portdbpath stat
+ return -code error "insufficient privileges for portdbpath $portdbpath (uid $stat(uid)); cannot create portarchivepath"
+ } elseif {[catch {file mkdir $portarchivepath} result]} {
return -code error "portarchivepath $portarchivepath does not exist and could not be created: $result"
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091123/f9c235b1/attachment.html>
More information about the macports-changes
mailing list