Skip to content

Commit

Permalink
Fix for when called multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Dec 9, 2019
1 parent 66e1390 commit aba8bcd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cime/scripts/lib/CIME/BuildTools/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ def _copy_depends_files(machine_name, machines_dir, output_dir, compiler):
basename = "Depends.{}{}".format(suffix, extra_suffix)
dfile = os.path.join(machines_dir, basename)
outputdfile = os.path.join(output_dir, basename)
if os.path.isfile(dfile) and not os.path.exists(outputdfile):
safe_copy(dfile, outputdfile)
if os.path.isfile(dfile):
if suffix == both and extra_suffix == "":
makefiles_done = True
if not os.path.exists(outputdfile):
safe_copy(dfile, outputdfile)

class FakeCase(object):

Expand Down

0 comments on commit aba8bcd

Please sign in to comment.