summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cae1730)
raw | patch | inline | side by side (parent: cae1730)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Mar 2008 10:16:35 +0000 (10:16 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Mar 2008 10:16:35 +0000 (10:16 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9702 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-server | patch | blob | history |
diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index 2da5c1e563073954dddf3582609a32fc15fc2c21..0f0aa84d4177c9ab3970a5e284df7f628d9208ff 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
sub create_fai_server_db {
- my ($table_name) = @_;
+ my ($table_name, $kernel) = @_;
my $result;
if(defined($ldap_handle)) {
}
}
daemon_log("INFO: create_fai_server_db: finished", 5);
- }
- # Now we can create the packages list
- $kernel->yield('create_packages_list_db');
+ # TODO: Find a way to post the 'create_packages_list_db' event
+ &create_packages_list_db();
+ }
return $result;
}
sub run_create_fai_server_db {
- my ($session, $heap, $table_name) = @_[SESSION, HEAP, ARG0];
+ my ($kernel, $session, $heap, $table_name) = @_[KERNEL, SESSION, HEAP, ARG0];
my $task = POE::Wheel::Run->new(
- Program => sub { &create_fai_server_db($table_name) },
+ Program => sub { &create_fai_server_db($table_name,$kernel) },
StdoutEvent => "session_run_result",
StderrEvent => "session_run_debug",
CloseEvent => "session_run_done",
return;
}
sub run_create_packages_list_db {
- my ($session, $heap, $sources_list) = @_[SESSION, HEAP, ARG0];
+ my ($session, $heap) = @_[SESSION, HEAP];
my $task = POE::Wheel::Run->new(
Program => sub {&create_packages_list_db},
StdoutEvent => "session_run_result",