Commit 92d109fe authored by Monika Komorowska's avatar Monika Komorowska
Browse files

parse dependent info

parent a2f6ec51
...@@ -106,6 +106,15 @@ foreach my $source_section ( sort( $config->GroupMembers('source') ) ) { ...@@ -106,6 +106,15 @@ foreach my $source_section ( sort( $config->GroupMembers('source') ) ) {
print("\n"); print("\n");
my @dependents =
split( /\,/, $config->val( $source_section, 'dependent', '' ) );
foreach my $dep (@dependents){
print "# adding source dependency that $source_section needs $dep loaded first\n";
print "INSERT IGNORE INTO dependent_source (master_source_id, dependent_name)\n";
printf( "VALUES (%d, '%s');\n\n", $source_ids{$source_section}, $dep);
}
} ## end foreach my $source_section ... } ## end foreach my $source_section ...
# Do the data files. # Do the data files.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment