From: Luke Saunders Date: Thu, 30 Apr 2009 23:48:14 +0000 (+0000) Subject: fixed bug causing errors when fixture directory had no subdirs X-Git-Tag: v1.001002~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=51794e1c76f16ea4c349394b1f12722b32350ded;p=dbsrgits%2FDBIx-Class-Fixtures.git fixed bug causing errors when fixture directory had no subdirs --- diff --git a/lib/DBIx/Class/Fixtures.pm b/lib/DBIx/Class/Fixtures.pm index 3cbe68b..38470ed 100644 --- a/lib/DBIx/Class/Fixtures.pm +++ b/lib/DBIx/Class/Fixtures.pm @@ -999,7 +999,6 @@ sub populate { $self->msg("\nimporting fixtures"); my $tmp_fixture_dir = dir($fixture_dir, "-~populate~-" . $<); - my $version_file = file($fixture_dir, '_dumper_version'); # DBIx::Class::Exception->throw('no version file found'); # unless -e $version_file; @@ -1009,6 +1008,7 @@ sub populate { $tmp_fixture_dir->rmtree; } $self->msg("- creating temp dir"); + $tmp_fixture_dir->mkpath(); for ( map { $schema->source($_)->from } $schema->sources) { my $from_dir = $fixture_dir->subdir($_); next unless -e $from_dir;