From 34f44dbbe0defca6caacd21c2f1ce018a56404e8 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Fri, 11 Jan 2008 10:28:05 +0000 Subject: [PATCH] change structure of xml answer in GosaPackages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8306 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 1 - gosa-si/modules/GosaPackages.pm | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 04577f38e..4efe5efeb 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -942,7 +942,6 @@ GetOptions("h|help" => \&usage, $SIG{CHLD} = 'IGNORE'; # restart daemon log file -#if(-e $log_file ) { unlink $log_file } daemon_log(" ", 1); daemon_log("$0 started!", 1); diff --git a/gosa-si/modules/GosaPackages.pm b/gosa-si/modules/GosaPackages.pm index 255022e3d..70e998bfb 100644 --- a/gosa-si/modules/GosaPackages.pm +++ b/gosa-si/modules/GosaPackages.pm @@ -334,7 +334,7 @@ sub db_res_2_xml { my $xml = ""; while ( my ($hit, $hash) = each %{ $db_res } ) { - $xml .= "<$hit>"; + $xml .= ""; while ( my ($column_name, $column_value) = each %{$hash} ) { $xml .= "<$column_name>"; @@ -346,7 +346,7 @@ sub db_res_2_xml { $xml .= ""; } - $xml .= ""; + $xml .= ""; } $xml .= ""; @@ -402,7 +402,7 @@ sub delete_jobdb_entry { } # prepare xml answer - my $out_xml = "<1>$res"; + my $out_xml = "$res"; return $out_xml; } @@ -424,7 +424,7 @@ sub clear_jobdb { } # prepare xml answer - my $out_xml = "<1>$res"; + my $out_xml = "$res"; return $out_xml; } @@ -441,7 +441,7 @@ sub update_status_jobdb_entry { } if( not exists $msg_hash->{update}[0]->{status} ) { - return "<1>1"; + return "1"; } $update_hash->{update} = [ { status=>$msg_hash->{update}[0]->{status} } ]; @@ -457,7 +457,7 @@ sub update_status_jobdb_entry { } # prepare xml answer - my $out_xml = "<1>$res"; + my $out_xml = "$res"; return $out_xml; } @@ -474,7 +474,7 @@ sub update_timestamp_jobdb_entry { } if( not exists $msg_hash->{update}[0]->{timestamp} ) { - return "<1>1"; + return "1"; } $update_hash->{update} = [ { timestamp=>$msg_hash->{update}[0]->{timestamp} } ]; @@ -491,7 +491,7 @@ sub update_timestamp_jobdb_entry { } # prepare xml answer - my $out_xml = "<1>$res"; + my $out_xml = "$res"; return $out_xml; } -- 2.30.2