[101750] trunk/dports/_resources/port1.0/group/octave-1.0.tcl

and.damore at macports.org and.damore at macports.org
Fri Jan 18 07:44:51 PST 2013


Revision: 101750
          https://trac.macports.org/changeset/101750
Author:   and.damore at macports.org
Date:     2013-01-18 07:44:51 -0800 (Fri, 18 Jan 2013)
Log Message:
-----------
octave-1.0 portgroup: check file exists before moving it

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/octave-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/octave-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/octave-1.0.tcl	2013-01-18 15:08:35 UTC (rev 101749)
+++ trunk/dports/_resources/port1.0/group/octave-1.0.tcl	2013-01-18 15:44:51 UTC (rev 101750)
@@ -65,7 +65,9 @@
 }
 
 post-destroot {
-    move ${destroot}${prefix}/share/octave/octave_packages ${destroot}${prefix}/share/octave/octave_packages_${name}
+    if {[file exists ${destroot}${prefix}/share/octave/octave_packages]} {
+        move ${destroot}${prefix}/share/octave/octave_packages ${destroot}${prefix}/share/octave/octave_packages_${name}
+    }
 }
 
 post-activate {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130118/35db5ab7/attachment.html>


More information about the macports-changes mailing list