From: Jess Robinson Date: Fri, 6 Oct 2006 19:52:38 +0000 (+0000) Subject: s/Path::Class/File::Spec/ X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=79923569c274d180c6591b859ad76c97f975a602;p=dbsrgits%2FDBIx-Class-Historic.git s/Path::Class/File::Spec/ --- diff --git a/lib/DBIx/Class/Storage/DBI/SQLite.pm b/lib/DBIx/Class/Storage/DBI/SQLite.pm index f69fe0a..1bbfd1d 100644 --- a/lib/DBIx/Class/Storage/DBI/SQLite.pm +++ b/lib/DBIx/Class/Storage/DBI/SQLite.pm @@ -4,7 +4,7 @@ use strict; use warnings; use POSIX 'strftime'; use File::Copy; -use Path::Class; +use File::Spec; use base qw/DBIx::Class::Storage::DBI::MultiDistinctEmulation/; @@ -29,9 +29,9 @@ sub backup if(!$dbname || !-f $dbname); # print "Found database: $dbname\n"; - my $dbfile = file($dbname); -# my ($vol, $dir, $file) = File::Spec->splitpath($dbname); - my $file = $dbfile->basename(); +# my $dbfile = file($dbname); + my ($vol, $dir, $file) = File::Spec->splitpath($dbname); +# my $file = $dbfile->basename(); $file = strftime("%y%m%d%h%M%s", localtime()) . $file; $file = "B$file" while(-f $file);