From 3ae0bab44655cdc40b67a6cc289abc410ca7bd45 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Wed, 16 Apr 2008 11:42:03 +0000 Subject: [PATCH] bugfix: recreating packages_list_db git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10502 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 1e35f6b6b..51980e1ba 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -2030,14 +2030,6 @@ sub run_create_packages_list_db { sub create_packages_list_db { my ($ldap_handle, $sources_file, $session_id); - if ($packages_list_under_construction) { - daemon_log("#########################################################################################\n\n\n\n\n"); - daemon_log("$session_id WARNING: packages_list_db is right now under construction, please wait untill this process is finished", 3); - return; - } - # set packages_list_under_construction to true - $packages_list_under_construction = 1; - if (not defined $session_id) { $session_id = 0; } if (not defined $ldap_handle) { $ldap_handle= &get_ldap_handle(); @@ -2051,8 +2043,16 @@ sub create_packages_list_db { $sources_file = &create_sources_list; } - my $line; - daemon_log("$session_id INFO: create_packages_list_db: start", 5); + if ($packages_list_under_construction) { + daemon_log("#########################################################################################\n\n\n\n\n"); + daemon_log("$session_id WARNING: packages_list_db is right now under construction, please wait untill this process is finished", 3); + return; + } else { + daemon_log("$session_id INFO: create_packages_list_db: start", 5); + # set packages_list_under_construction to true + $packages_list_under_construction = 1; + } + my $line; open(CONFIG, "<$sources_file") or do { daemon_log( "$session_id ERROR: create_packages_list_db: Failed to open '$sources_file'", 1); -- 2.30.2