[Bps-public-commit] Config-GitLike branch, master, updated. 01df1cf7cb5884b110bc0726870fa7d451e84d46

spang at bestpractical.com spang at bestpractical.com
Fri Jun 26 05:44:26 EDT 2009


The branch, master has been updated
       via  01df1cf7cb5884b110bc0726870fa7d451e84d46 (commit)
       via  a5d6591de043565d918131f271d1b6a3730499db (commit)
      from  0eb9f95052fdca6dddfb7ce0bd9e84734d878da7 (commit)

Summary of changes:
 lib/Config/GitLike.pm |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit a5d6591de043565d918131f271d1b6a3730499db
Author: Christine Spang <spang at mit.edu>
Date:   Fri Jun 26 12:43:54 2009 +0300

    Die if we try to open a file for writing and fail.

diff --git a/lib/Config/GitLike.pm b/lib/Config/GitLike.pm
index eb96357..3b45813 100644
--- a/lib/Config/GitLike.pm
+++ b/lib/Config/GitLike.pm
@@ -131,7 +131,8 @@ sub _read_config {
 
     my $fh;
     if ( !open($fh, '<', $filename) && $lock_and_return_fh ) {
-        open($fh, '>', $filename);
+        open($fh, '>', $filename)
+            or die "Can't open $filename for writing: $!\n";
         flock($fh, LOCK_EX);
         return ('', $fh);
     }

commit 01df1cf7cb5884b110bc0726870fa7d451e84d46
Author: Christine Spang <spang at mit.edu>
Date:   Fri Jun 26 12:44:11 2009 +0300

    Mention Prophet/SD in SEE ALSO

diff --git a/lib/Config/GitLike.pm b/lib/Config/GitLike.pm
index 3b45813..16ae676 100644
--- a/lib/Config/GitLike.pm
+++ b/lib/Config/GitLike.pm
@@ -1661,7 +1661,8 @@ configuration files or code snippets.
 =head1 SEE ALSO
 
 L<http://www.kernel.org/pub/software/scm/git/docs/git-config.html#_configuration_file>,
-L<Config::GitLike::Cascaded|Config::GitLike::Cascaded>
+L<Config::GitLike::Cascaded|Config::GitLike::Cascaded>, L<http://syncwith.us/>
+(C<Config::GitLike> is used in Prophet/SD and provides a working example)
 
 =head1 LICENSE
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list