[cmor] 39/190: not creating directory when caling this and CMOR_CREATE_SUBDIRECTORIES is set off

Alastair McKinstry mckinstry at moszumanska.debian.org
Tue Jul 21 12:54:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch debian/master
in repository cmor.

commit da43f98046ea3fb32490be7393e7f675f1fa7962
Author: Charles Doutriaux <doutriaux1 at llnl.gov>
Date:   Thu Aug 19 15:23:45 2010 -0700

    not creating directory when caling this and CMOR_CREATE_SUBDIRECTORIES is set off
---
 Src/cmor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Src/cmor.c b/Src/cmor.c
index 8ec6f01..43c9fe4 100644
--- a/Src/cmor.c
+++ b/Src/cmor.c
@@ -3223,6 +3223,7 @@ int cmor_create_output_path(int var_id,char *outpath)
   for (i=0;i<nurls;i++) {
     if (strncmp(outpath,urls[i],strlen(urls[i]))==0) createdirs=0;
   }
+  if (CMOR_CREATE_SUBDIRECTORIES == 1) createdirs=0;
   /* activity */
   strncpytrim(tmp,cmor_tables[cmor_vars[var_id].ref_table_id].project_id,CMOR_MAX_STRING);
   /* make sure you replace spaces with "_" */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cmor.git



More information about the debian-science-commits mailing list