summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f5cf7b0)
raw | patch | inline | side by side (parent: f5cf7b0)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 31 Jan 2008 11:42:22 +0000 (11:42 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 31 Jan 2008 11:42:22 +0000 (11:42 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8701 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/modules/GosaPackages.pm | patch | blob | history |
index f13ed3bc125716495d8831f26acbdc41db6e7bf3..6bf2e3658bcb077a4ca11e8fde1765462237e7cb 100644 (file)
else {
&main::daemon_log("ERROR: $header is not a valid GosaPackage-header, need a 'job_' or a 'gosa_' prefix");
}
-
- # keep job queue uptodate and save result and status
+
+ # keep job queue uptodate and save result and status
if ($out_msg =~ /<jobdb_id>(\d*?)<\/jobdb_id>/) {
my $job_id = $1;
my $sql = "UPDATE '".$main::job_queue_table_name.
$header =~ s/gosa_//;
# decide wether msg is a core function or a event handler
- if ( $header eq 'query_jobdb') { $out_msg = &query_jobdb }
- elsif ($header eq 'delete_jobdb_entry') { $out_msg = &delete_jobdb_entry }
- elsif ($header eq 'clear_jobdb') { $out_msg = &clear_jobdb }
- elsif ($header eq 'update_status_jobdb_entry' ) { $out_msg = &update_status_jobdb_entry }
- elsif ($header eq 'count_jobdb' ) { $out_msg = &count_jobdb }
- else {
+ if ( $header eq 'query_jobdb') {
+ $out_msg = &query_jobdb
+ } elsif ($header eq 'delete_jobdb_entry') {
+ $out_msg = &delete_jobdb_entry
+ } elsif ($header eq 'clear_jobdb') {
+ $out_msg = &clear_jobdb
+ } elsif ($header eq 'update_status_jobdb_entry' ) {
+ $out_msg = &update_status_jobdb_entry
+ } elsif ($header eq 'count_jobdb' ) {
+ $out_msg = &count_jobdb
+ } else {
# msg could not be assigned to core function
# fetch all available eventhandler under $server_event_dir
opendir (DIR, $server_event_dir) or &main::daemon_log("ERROR cannot open $server_event_dir: $!\n", 1) and return;