From: Lianna Eeftinck Date: Fri, 31 Jan 2014 14:51:06 +0000 (-0600) Subject: Make source order stable to avoid non-changes in git X-Git-Tag: v0.002210~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cd41f44ff6cfcfb299381521f8e1ec2afc7b8991;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git Make source order stable to avoid non-changes in git --- diff --git a/Changes b/Changes index f0c2b37..5db545a 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for {{$dist->name}} {{$NEXT}} + - Make source order stable to avoid non-changes in git (fixes RT#92580) - Ensure that sqltargs are passed to deploy when ignore_ddl is set (fixes RT#92373) - Correctly strip lines that are all whitespace (fixes RT#92582) diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm index 0b00dba..658b143 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm @@ -591,7 +591,13 @@ sub prepare_deploy { my $self = shift; $self->prepare_protoschema({ # Exclude __VERSION so that it gets installed separately - parser_args => { sources => [grep { $_ ne '__VERSION' } $self->schema->sources], } + parser_args => { + sources => [ + sort { $a cmp $b } + grep { $_ ne '__VERSION' } + $self->schema->sources + ], + } }, '_ddl_protoschema_produce_filename'); $self->_prepare_install({}, '_ddl_protoschema_produce_filename', '_ddl_schema_produce_filename'); }