Browse Source

build_binaries.py: write fwversion out even if directory exists

We re-use the "beta" directory for other betas
master
Peter Barker 2 years ago committed by Andrew Tridgell
parent
commit
9bf66afee2
  1. 6
      Tools/scripts/build_binaries.py

6
Tools/scripts/build_binaries.py

@ -510,14 +510,16 @@ is bob we will attempt to checkout bob-AVR'''
# build timestamp: # build timestamp:
if not os.path.exists(ddir): if not os.path.exists(ddir):
self.mkpath(ddir) self.mkpath(ddir)
self.addfwversion(ddir, vehicle) self.addfwversion(ddir, vehicle)
self.progress("Copying %s to %s" % (path, ddir,)) self.progress("Copying %s to %s" % (path, ddir,))
shutil.copy(path, os.path.join(ddir, target_filename)) shutil.copy(path, os.path.join(ddir, target_filename))
# the most recent build of every tag is kept around: # the most recent build of every tag is kept around:
self.progress("Copying %s to %s" % (path, tdir)) self.progress("Copying %s to %s" % (path, tdir))
if not os.path.exists(tdir): if not os.path.exists(tdir):
self.mkpath(tdir) self.mkpath(tdir)
self.addfwversion(tdir, vehicle) # must addfwversion even if path already
# exists as we re-use the "beta" directories
self.addfwversion(tdir, vehicle)
shutil.copy(path, os.path.join(tdir, target_filename)) shutil.copy(path, os.path.join(tdir, target_filename))
except Exception as e: except Exception as e:
self.print_exception_caught(e) self.print_exception_caught(e)

Loading…
Cancel
Save