[Jifty-commit] r5513 - jifty/trunk/lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Mon Jun 16 09:21:21 EDT 2008


Author: ishigaki
Date: Mon Jun 16 09:21:21 2008
New Revision: 5513

Modified:
   jifty/trunk/lib/Jifty/Handle.pm

Log:
Jifty::Handle: not to break someone's existing setup (Shawn's advice)

Modified: jifty/trunk/lib/Jifty/Handle.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Handle.pm	(original)
+++ jifty/trunk/lib/Jifty/Handle.pm	Mon Jun 16 09:21:21 2008
@@ -72,7 +72,10 @@
 
     if ( $db_config->{'Driver'} =~ /SQLite/ ) {
         $db = Jifty::Util->absolute_path($db);
-        $db =~ s{::}{-}g;  # ':' is not allowed in a Win32 path
+        # ':' is not allowed in a (esp.) Win32 path.
+        # however, this may break someone's existing setup, so
+        # added existence check (Shawn's advice)
+        $db =~ s{::}{-}g unless -e $db;
     }
 
     return $db;


More information about the Jifty-commit mailing list