[ARVADOS-DEV] updated: 0d66112d0a33cbdce8b7bee3ca0897fdf7462ab1

Git user git at public.arvados.org
Thu Jan 28 22:32:00 UTC 2021


Summary of changes:
 jenkins/run_upload_packages.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

       via  0d66112d0a33cbdce8b7bee3ca0897fdf7462ab1 (commit)
      from  a2286c2a22ddafa1d808e471ce74e7e5c1645047 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 0d66112d0a33cbdce8b7bee3ca0897fdf7462ab1
Author: Ward Vandewege <ward at curii.com>
Date:   Thu Jan 28 17:30:55 2021 -0500

    run_upload_packages.py should make sure the directory it tries to put a
    timestamp file in exists.
    
    No issue #
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>

diff --git a/jenkins/run_upload_packages.py b/jenkins/run_upload_packages.py
index 0840f2f..8a31d2e 100755
--- a/jenkins/run_upload_packages.py
+++ b/jenkins/run_upload_packages.py
@@ -5,6 +5,7 @@
 # SPDX-License-Identifier: AGPL-3.0
 
 import argparse
+import errno
 import functools
 import glob
 import locale
@@ -50,6 +51,15 @@ def run_and_grep(cmd, read_output, *regexps,
 class TimestampFile:
     def __init__(self, path):
         self.path = path
+        # Make sure the dirname for `path` exists
+        p = os.path.dirname(path)
+        try:
+            os.makedirs(p)
+        except OSError as exc:
+            if exc.errno == errno.EEXIST and os.path.isdir(path):
+                pass
+            else:
+                raise
         self.start_time = time.time()
 
     def last_upload(self):

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list