summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 04683bf)
raw | patch | inline | side by side (parent: 04683bf)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 15 Apr 2008 06:49:20 +0000 (06:49 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 15 Apr 2008 06:49:20 +0000 (06:49 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10444 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/gosaTriggered.pm | patch | blob | history |
index 0d4861e58f302acbf91855e3ef3be737810ffc47..29e1a7b9ea2cc1f96d4e9e98f857a81ba5eed27e 100644 (file)
my $source = @{$msg_hash->{'source'}}[0];
my $target = @{$msg_hash->{'target'}}[0];
- my $server = @{$msg_hash->{'server'}}[0];
-
- # Get available Releases for server
- my $sql_statement = "SELECT * FROM $main::fai_server_tn WHERE server LIKE '%$server%'";
- my $res_hash = $main::fai_server_db->select_dbentry($sql_statement);
+ my $release= @{$msg_hash->{'release'}}[0];
my @kernel;
- foreach my $release (keys %{$res_hash}) {
- # Get Kernel packages for release
- my $sql_statement = "SELECT * FROM $main::packages_list_tn WHERE distribution='".$res_hash->{$release}->{'release'}."' AND package LIKE 'linux\-image\-%'";
- my $hash = $main::packages_list_db->select_dbentry($sql_statement);
- foreach my $package (keys %{$hash}) {
- push @kernel, (%{$res_hash}->{$release}->{'release'})."|".(%{$hash}->{$package}->{'package'});
- }
+ # Get Kernel packages for release
+ my $sql_statement = "SELECT * FROM $main::packages_list_tn WHERE distribution='$release' AND package LIKE 'linux\-image\-%'";
+ my $res_hash = $main::packages_list_db->select_dbentry($sql_statement);
+ foreach my $package (keys %{$res_hash}) {
+ push @kernel, %{$res_hash}->{$package}->{'package'};
}
my %data = ('available-kernel' => \@kernel);
return ( $out_msg );
}
+
1;