rda-python-dsarch 3.0.10__tar.gz → 3.0.12__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. {rda_python_dsarch-3.0.10/src/rda_python_dsarch.egg-info → rda_python_dsarch-3.0.12}/PKG-INFO +1 -1
  2. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/pyproject.toml +1 -1
  3. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch/dsarch.py +10 -5
  4. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12/src/rda_python_dsarch.egg-info}/PKG-INFO +1 -1
  5. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/LICENSE +0 -0
  6. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/MANIFEST.in +0 -0
  7. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/README.md +0 -0
  8. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/setup.cfg +0 -0
  9. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch/PgArch.py +0 -0
  10. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch/PgMeta.py +0 -0
  11. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch/__init__.py +0 -0
  12. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch/ds_arch.py +0 -0
  13. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch/dsarch.usg +0 -0
  14. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch/pg_arch.py +0 -0
  15. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch/pg_meta.py +0 -0
  16. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch.egg-info/SOURCES.txt +0 -0
  17. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch.egg-info/dependency_links.txt +0 -0
  18. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch.egg-info/entry_points.txt +0 -0
  19. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch.egg-info/requires.txt +0 -0
  20. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/src/rda_python_dsarch.egg-info/top_level.txt +0 -0
  21. {rda_python_dsarch-3.0.10 → rda_python_dsarch-3.0.12}/tests/test_dsarch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsarch
3
- Version: 3.0.10
3
+ Version: 3.0.12
4
4
  Summary: RDA Python package for utility program dsarch archive RDA data
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dsarch
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rda_python_dsarch"
7
- version = "3.0.10"
7
+ version = "3.0.12"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -1802,7 +1802,8 @@ class DsArch(PgArch, PgMeta):
1802
1802
  oarch = 0
1803
1803
  ofile = (self.join_paths(dsid, sfile) if oarch else None)
1804
1804
  if sarch:
1805
- tardir = "{}/{}".format(self.PGLOG['DECSHOME'], dsid)
1805
+ # saved files are tarred relative to DECSHOME/<dsid>/<type>, per tar_backup_savedfiles()
1806
+ tardir = "{}/{}/{}".format(self.PGLOG['DECSHOME'], dsid, type)
1806
1807
  else:
1807
1808
  tardir = "{}/{}/{}".format(self.PGLOG['DECSHOME'], self.PGLOG['BACKUPEP'], dsid)
1808
1809
  afile = "{}/{}".format(tardir, sfile)
@@ -1914,14 +1915,18 @@ class DsArch(PgArch, PgMeta):
1914
1915
  self.pglog(binfo + ": No need Cross Copy, Both Backup & Drdata Exist", self.PGOPT['wrnlog'])
1915
1916
  continue
1916
1917
  if barch:
1917
- if not self.endpoint_copy_endpoint(qfile, qfile, bpoint, dpoint, self.PGOPT['emerol']|self.OVERRIDE):
1918
+ bstat = self.endpoint_copy_endpoint(qfile, qfile, bpoint, dpoint, self.PGOPT['emerol']|self.OVERRIDE)
1919
+ if bstat == self.FINISH: bstat = self.check_globus_finished(qfile, bpoint, self.PGOPT['emerol']|self.NOWAIT)
1920
+ if not bstat:
1918
1921
  errcnt += 1
1919
1922
  efiles[i] = 1
1920
1923
  dflags['B'] = bpoint
1921
1924
  continue
1922
1925
  bcnt += 1
1923
1926
  elif darch:
1924
- if not self.endpoint_copy_endpoint(qfile, qfile, dpoint, bpoint, self.PGOPT['emerol']|self.OVERRIDE):
1927
+ dstat = self.endpoint_copy_endpoint(qfile, qfile, dpoint, bpoint, self.PGOPT['emerol']|self.OVERRIDE)
1928
+ if dstat == self.FINISH: dstat = self.check_globus_finished(qfile, dpoint, self.PGOPT['emerol']|self.NOWAIT)
1929
+ if not dstat:
1925
1930
  errcnt += 1
1926
1931
  efiles[i] = 1
1927
1932
  dflags['D'] = dpoint
@@ -1952,9 +1957,9 @@ class DsArch(PgArch, PgMeta):
1952
1957
  self.check_background(None, 0, self.LOGWRN, 1)
1953
1958
  for i in range(self.ALLCNT):
1954
1959
  if barchs[i]:
1955
- self.validate_backarch(qfiles[i], "{}-{}".format(bpoint, qfiles[i]), i)
1960
+ self.validate_backarch(qfiles[i], "{}-{}".format(dpoint, qfiles[i]), bpoint, i)
1956
1961
  elif qfiles[i]:
1957
- self.validate_backarch(qfiles[i], "{}-{}".format(dpoint, qfiles[i]), i)
1962
+ self.validate_backarch(qfiles[i], "{}-{}".format(bpoint, qfiles[i]), dpoint, i)
1958
1963
  if bcnt > 0: self.pglog("{} of {} Backup file{} Cross Copied for {}".format(bcnt, self.ALLCNT, s, dsid), self.PGOPT['emllog'])
1959
1964
  if dcnt > 0: self.pglog("{} of {} Drdata file{} Cross Copied for {}".format(dcnt, self.ALLCNT, s, dsid), self.PGOPT['emllog'])
1960
1965
  if self.PGLOG['DSCHECK']:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsarch
3
- Version: 3.0.10
3
+ Version: 3.0.12
4
4
  Summary: RDA Python package for utility program dsarch archive RDA data
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dsarch