From: janw Date: Tue, 16 Sep 2008 10:20:46 +0000 (+0000) Subject: Don't search for templates if no repository is configured. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6ce62f3dfbdcb1d23d28531bd53b08ee9b10349d;p=gosa.git 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 --- 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;