From e9b03a4e9e3d1d3ffc6502d0fdcdddda5850d848 Mon Sep 17 00:00:00 2001 From: Michael Pyne Date: Tue, 14 Jun 2011 22:44:28 -0400 Subject: [PATCH] Remove module config check. The check_for_module_config procedure was used to ensure that the user actually meant to build a module given on the command line that doesn't match any in the rc file. This is currently superseded by a separate check that doesn't allow *any* module to build if it's not present in the rc file. My intention is to allow this check to pass if the module matches either the internal built-in config (which I haven't implemented yet) or the kde_projects.xml (which I haven't implemented the special case for). Either way this check will remain redundant, so remove it. --- kdesrc-build | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/kdesrc-build b/kdesrc-build index 1329527..40031d1 100755 --- a/kdesrc-build +++ b/kdesrc-build @@ -5124,8 +5124,6 @@ sub handle_updates my $moduleName = $module->name(); $moduleName = $l10n if $moduleName eq 'l10n'; # Correct internal name. - check_for_module_config ($moduleName); - my $module_src_dir = get_source_dir($module); if ($kdesrc ne $module_src_dir) { @@ -6179,9 +6177,6 @@ sub build_module my $moduleName = $module->name(); my $builddir = $module->fullpath('build'); - # Do some tests to make sure we're ready to build. - check_for_module_config($moduleName); - update_module_environment($module); my $log_filter = sub { @@ -6554,32 +6549,6 @@ EOF return scalar @{$fail_lists{'build'}} or grep (/failed/, values %svn_status); } -# Subroutine checks to see if a module is present in the config file, and -# warns if it is not. It does this by checking whether it has any options set, -# and if not, will set a default value for the options. -# First parameter: name of module to check. -sub check_for_module_config -{ - my $module = shift; - - if (not exists $package_opts{$module}) - { - warning <name(); update_module_environment ($module); - check_for_module_config ($moduleName); my $builddir = $module->fullpath('build'); @@ -6758,7 +6726,6 @@ sub handle_uninstall resetenv(); my $moduleName = $module->name(); update_module_environment ($module); - check_for_module_config ($moduleName); my $builddir = $module->fullpath('build');