[svn:parrot] r42583 - trunk/runtime/parrot/library

fperrad at svn.parrot.org fperrad at svn.parrot.org
Thu Nov 19 17:06:30 UTC 2009


Author: fperrad
Date: Thu Nov 19 17:06:28 2009
New Revision: 42583
URL: https://trac.parrot.org/parrot/changeset/42583

Log:
[distutils] the 3rd parameter of 'install' is now optional

Modified:
   trunk/runtime/parrot/library/distutils.pir

Modified: trunk/runtime/parrot/library/distutils.pir
==============================================================================
--- trunk/runtime/parrot/library/distutils.pir	Thu Nov 19 03:56:09 2009	(r42582)
+++ trunk/runtime/parrot/library/distutils.pir	Thu Nov 19 17:06:28 2009	(r42583)
@@ -2063,7 +2063,8 @@
 .sub 'install'
     .param string src
     .param string dst
-    .param int exe
+    .param int exe      :optional
+    .param int has_exe  :opt_flag
     # mkpath
     $I1 = 1
   L1:
@@ -2079,6 +2080,7 @@
     $I0 = newer(dst, src)
     if $I0 goto L3
     cp(src, dst)
+    unless has_exe goto L3
     unless exe goto L3
     chmod(dst, 0o755)
   L3:


More information about the parrot-commits mailing list