Code

Don't search for templates if no repository is configured.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Sep 2008 10:20:46 +0000 (10:20 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Sep 2008 10:20:46 +0000 (10:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12471 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index 9145327288c83c1d38833a949d73e406f068db40..7b2fceacb668d3072a26e9a7868cb8228504af60 100755 (executable)
@@ -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;