From 6ce62f3dfbdcb1d23d28531bd53b08ee9b10349d Mon Sep 17 00:00:00 2001 From: janw Date: Tue, 16 Sep 2008 10:20:46 +0000 Subject: [PATCH] Don't search for templates if no repository is configured. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12471 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 914532728..7b2fceacb 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -2769,9 +2769,11 @@ sub create_packages_list_db { close (CONFIG); - find(\&cleanup_and_extract, keys( %repo_dirs )); - &main::strip_packages_list_statements(); - $packages_list_db->exec_statementlist(\@packages_list_statements); + if(keys(%repo_dirs)) { + find(\&cleanup_and_extract, keys( %repo_dirs )); + &main::strip_packages_list_statements(); + $packages_list_db->exec_statementlist(\@packages_list_statements); + } unlink($packages_list_under_construction); daemon_log("$session_id INFO: create_packages_list_db: finished", 5); return; -- 2.30.2