5d2cc0dd88a130e3e1c3eb3d9f1ad5d7d1f67e04 max Wed Feb 26 08:10:53 2025 -0800 typo in previous commit diff --git src/utils/hubtools/hubtools src/utils/hubtools/hubtools index 7ace50d5b2e..437751cd712 100755 --- src/utils/hubtools/hubtools +++ src/utils/hubtools/hubtools @@ -777,31 +777,31 @@ "hubName" : hubName, "hubtools" : "true", "fileType": fileType, "lastModified" : str(int(localMtime)), } logging.info(f"Uploading {localPath}, meta {meta}") uploader = my_client.uploader(localPath, metadata=meta) uploader.upload() # note that this file was uploaded cache = {} mtime = os.stat(localPath).st_mtime cache["mtime"] = mtime cache["size"] = os.stat(localPath).st_size - uploadCache[fpath] = cache + uploadCache[localPath] = cache cacheWrite(uploadCache, cacheFname) def iterRaStanzas(fname): " parse an ra-style (trackDb) file and yield dictionaries " data = dict() logging.debug("Parsing %s in trackDb format" % fname) with open(fname, "rt") as ifh: for l in ifh: l = l.lstrip(" ").rstrip("\r\n") if len(l)==0: yield data data = dict() else: if " " not in l: