summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3424023)
raw | patch | inline | side by side (parent: 3424023)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 May 2008 13:56:54 +0000 (13:56 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 May 2008 13:56:54 +0000 (13:56 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11006 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 289244446dab5dd05de9fc2cf68b1007db3b7c6f..dc82ecbef8735aa547fab5266472648e633bf9b1 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
close (CONFIG);
find(\&cleanup_and_extract, keys( %repo_dirs ));
- &main::strip_packages_list_statements();
+ eval {
+ &main::strip_packages_list_statements();
+ };
+ if($@) {
+ daemon_log("$session_id ERROR: Preparation of statement list failed with '$@'!", 1);
+ }
unshift @packages_list_statements, "VACUUM";
- $packages_list_db->exec_statementlist(\@packages_list_statements);
+ eval {
+ $packages_list_db->exec_statementlist(\@packages_list_statements);
+ };
+ if($@) {
+ daemon_log("$session_id ERROR: Updating package_list_db failed with '$@'!", 1);
+ }
unlink($packages_list_under_construction);
daemon_log("$session_id INFO: create_packages_list_db: finished", 5);
return;
}
+
# This function should do some intensive task to minimize the db-traffic
sub strip_packages_list_statements {
my @existing_entries= @{$packages_list_db->exec_statement("SELECT * FROM $main::packages_list_tn")};