[84795] trunk/dports/lang/py-htmldocs/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sat Oct 1 19:21:56 PDT 2011
Revision: 84795
http://trac.macports.org/changeset/84795
Author: ryandesign at macports.org
Date: 2011-10-01 19:21:56 -0700 (Sat, 01 Oct 2011)
Log Message:
-----------
py-htmldocs: fix permissions using fs-traverse ... file attributes -permissions instead of system ... chmod ... find; see #31480
Modified Paths:
--------------
trunk/dports/lang/py-htmldocs/Portfile
Modified: trunk/dports/lang/py-htmldocs/Portfile
===================================================================
--- trunk/dports/lang/py-htmldocs/Portfile 2011-10-02 01:59:05 UTC (rev 84794)
+++ trunk/dports/lang/py-htmldocs/Portfile 2011-10-02 02:21:56 UTC (rev 84795)
@@ -86,8 +86,13 @@
set destdocdir ${destroot}${prefix}/share/doc/python${python.version}-doc
file mkdir ${destroot}${prefix}/share/doc
file copy ${workpath}/${extractname} ${destdocdir}
- system "chmod a+r `find ${destdocdir} -type f`"
- system "chmod a+rx `find ${destdocdir} -type d`"
+ fs-traverse item ${destdocdir} {
+ if {[file isdirectory ${item}]} {
+ file attributes ${item} -permissions a+rx
+ } elseif {[file isfile ${item}]} {
+ file attributes ${item} -permissions a+r
+ }
+ }
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111001/675a8163/attachment.html>
More information about the macports-changes
mailing list