fixed SQLite dep and dir copy test failure
Luke Saunders [Tue, 19 Feb 2008 13:43:58 +0000 (13:43 +0000)]
Makefile.PL
lib/DBIx/Class/Fixtures.pm

index c09e031..d7ac50d 100644 (file)
@@ -16,6 +16,7 @@ WriteMakefile(
         'JSON::Syck' => 0.26,
         'Data::Dump::Streamer' => 2.05,
         'Hash::Merge' => 0.10,
+        'DBD::SQLite' => 1.14,
     },
     dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
     clean               => { FILES => 'DBIx-Class-Fixtures-*' },
index d42e3be..0b783c5 100644 (file)
@@ -720,7 +720,7 @@ sub populate {
     $tmp_fixture_dir->rmtree;
   }
   $self->msg("- creating temp dir");
-  dircopy(dir($fixture_dir, $schema->source($_)->from), dir($tmp_fixture_dir, $schema->source($_)->from)) for $schema->sources;
+  dircopy(dir($fixture_dir, $schema->source($_)->from), dir($tmp_fixture_dir, $schema->source($_)->from)) for grep { -e dir($fixture_dir, $schema->source($_)->from) } $schema->sources;
 
   eval { $schema->storage->dbh->do('SET foreign_key_checks=0') };