[Bps-public-commit] Shipwright branch, master, updated. 0a2e0379c7de898479c8e1876138fe852136b3c6
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Sep 10 20:15:28 EDT 2009
The branch, master has been updated
via 0a2e0379c7de898479c8e1876138fe852136b3c6 (commit)
from 087156a1fef456cbb5349371a0893a75bf735a62 (commit)
Summary of changes:
lib/Shipwright/Source.pm | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 0a2e0379c7de898479c8e1876138fe852136b3c6
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Sep 11 08:15:20 2009 +0800
don't try to create the file if the file already exists
diff --git a/lib/Shipwright/Source.pm b/lib/Shipwright/Source.pm
index a6d0953..560816f 100644
--- a/lib/Shipwright/Source.pm
+++ b/lib/Shipwright/Source.pm
@@ -41,6 +41,7 @@ sub new {
$args{branches_path} ||= catfile( $args{directory}, 'branches.yml' );
for (qw/map_path url_path version_path branches_path/) {
+ next if -e $args{$_};
open my $fh, '>', $args{$_} or confess "can't write to $args{$_}: $!";
close $fh;
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list