[csw-devel] SF.net SVN: gar:[17227] csw/mgar/gar/v2/bin/pcopy

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Mon Feb 27 14:21:06 CET 2012


Revision: 17227
          http://gar.svn.sourceforge.net/gar/?rev=17227&view=rev
Author:   dmichelsen
Date:     2012-02-27 13:21:05 +0000 (Mon, 27 Feb 2012)
Log Message:
-----------
mGAR v2: Keep symlinks to directories during merge

Modified Paths:
--------------
    csw/mgar/gar/v2/bin/pcopy

Modified: csw/mgar/gar/v2/bin/pcopy
===================================================================
--- csw/mgar/gar/v2/bin/pcopy	2012-02-27 10:38:40 UTC (rev 17226)
+++ csw/mgar/gar/v2/bin/pcopy	2012-02-27 13:21:05 UTC (rev 17227)
@@ -130,7 +130,7 @@
       }
     }
   }
-  if( -d $whole ) {
+  if( -d $whole && ! -l $whole ) {
     make_path( $todir . '/' . $target );
     return;
   }
@@ -147,6 +147,7 @@
     } elsif( -e $linktarget ) {
       print "Could not link to $linktarget as there is some file already there\n";
     } else {
+print "symlink\n";
       symlink( $link, $todir . '/' . $target ) or print "Could not link to $todir/$target\n";
     }
   } else {

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list