Skip to content

Commit

Permalink
Item13313: strange that this wasn't failing for me
Browse files Browse the repository at this point in the history
  • Loading branch information
Comment committed Mar 23, 2015
1 parent 1442787 commit 3c44351
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions core/tools/change_store.pl
Expand Up @@ -186,12 +186,20 @@ sub validate_info {
bad_args 'Must specify source and target store implementations'
unless $source && $target;

if ( $datadir[0] eq $datadir[1] && $uses_files[0] && $uses_files[1] ) {
if ( !$validate
&& $datadir[0] eq $datadir[1]
&& $uses_files[0]
&& $uses_files[1] )
{
bad_args
"-td=$datadir[0] is the same as -sd; cannot overwrite the source store";
}

if ( $pubdir[0] eq $pubdir[1] && $uses_files[0] && $uses_files[1] ) {
if ( !$validate
&& $pubdir[0] eq $pubdir[1]
&& $uses_files[0]
&& $uses_files[1] )
{
bad_args
"-tp=$pubdir[0] is the same as -sp; cannot overwrite the source store";
}
Expand Down

0 comments on commit 3c44351

Please sign in to comment.