Revision ecd9e568
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
scripts/rose_auto_create_model.pl | ||
---|---|---|
320 | 320 |
print @_, $/; |
321 | 321 |
} |
322 | 322 |
|
323 |
sub check_errors_in_package_names { |
|
324 |
foreach my $domain (sort keys %package_names) { |
|
325 |
my @both = grep { $package_names{$domain}->{$_} } @{ $blacklist{$domain} || [] }; |
|
326 |
next unless @both; |
|
327 |
|
|
328 |
print "Error: domain '$domain': The following table names are present in both the black list and the package name hash: ", join(' ', sort @both), "\n"; |
|
329 |
exit 1; |
|
330 |
} |
|
331 |
} |
|
332 |
|
|
323 | 333 |
parse_args(\%config); |
324 | 334 |
setup(); |
335 |
check_errors_in_package_names(); |
|
325 | 336 |
|
326 | 337 |
my %tables_by_domain = make_tables(); |
327 | 338 |
|
Auch abrufbar als: Unified diff
Rose-Model-Generator: auf Duplikate in Blacklist/Paketnamenshash prüfen