rda-python-dsarch 3.0.9__tar.gz → 3.0.11__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.9/src/rda_python_dsarch.egg-info → rda_python_dsarch-3.0.11}/PKG-INFO +1 -1
  2. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/pyproject.toml +1 -1
  3. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch/dsarch.py +10 -10
  4. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11/src/rda_python_dsarch.egg-info}/PKG-INFO +1 -1
  5. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/LICENSE +0 -0
  6. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/MANIFEST.in +0 -0
  7. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/README.md +0 -0
  8. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/setup.cfg +0 -0
  9. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch/PgArch.py +0 -0
  10. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch/PgMeta.py +0 -0
  11. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch/__init__.py +0 -0
  12. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch/ds_arch.py +0 -0
  13. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch/dsarch.usg +0 -0
  14. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch/pg_arch.py +0 -0
  15. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch/pg_meta.py +0 -0
  16. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch.egg-info/SOURCES.txt +0 -0
  17. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch.egg-info/dependency_links.txt +0 -0
  18. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch.egg-info/entry_points.txt +0 -0
  19. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch.egg-info/requires.txt +0 -0
  20. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/src/rda_python_dsarch.egg-info/top_level.txt +0 -0
  21. {rda_python_dsarch-3.0.9 → rda_python_dsarch-3.0.11}/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.9
3
+ Version: 3.0.11
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.9"
7
+ version = "3.0.11"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -1710,10 +1710,8 @@ class DsArch(PgArch, PgMeta):
1710
1710
  self.pglog("{}: Backup tar file of Backup Id {} is not downloaded".format(wfile, pgrec['bid']), self.PGOPT['wrnlog'])
1711
1711
  continue
1712
1712
  tarfile = self.TARFILES[pgrec['bid']]
1713
+ self.make_local_directory(tardir, self.PGOPT['extlog'])
1713
1714
  ainfo = self.get_backup_member_file(pgrec, tarfile, tardir)
1714
- tarcmd = "tar -xvf {} -C {} {}".format(tarfile, tardir, wfile)
1715
- self.pgsystem(tarcmd, self.PGOPT['extlog'], 5)
1716
- ainfo = self.check_local_file(afile, 0, self.PGOPT['extlog'])
1717
1715
  if not ainfo:
1718
1716
  self.pglog("{}: Error untar File {}".format(tarfile, afile), self.PGOPT['wrnlog'])
1719
1717
  continue
@@ -1817,10 +1815,8 @@ class DsArch(PgArch, PgMeta):
1817
1815
  self.pglog("{}: Backup tar file of Backup Id {} is not downloaded".format(sfile, pgrec['bid']), self.PGOPT['wrnlog'])
1818
1816
  continue
1819
1817
  tarfile = self.TARFILES[pgrec['bid']]
1818
+ self.make_local_directory(tardir, self.PGOPT['extlog'])
1820
1819
  ainfo = self.get_backup_member_file(pgrec, tarfile, tardir)
1821
- tarcmd = "tar -xvf {} -C {} {}".format(tarfile, tardir, sfile)
1822
- self.pgsystem(tarcmd, self.PGOPT['extlog'], 5)
1823
- ainfo = self.check_local_file(afile, 0, self.PGOPT['extlog'])
1824
1820
  if not ainfo:
1825
1821
  self.pglog("{}: Error untar File {}".format(tarfile, afile), self.PGOPT['wrnlog'])
1826
1822
  continue
@@ -1918,14 +1914,18 @@ class DsArch(PgArch, PgMeta):
1918
1914
  self.pglog(binfo + ": No need Cross Copy, Both Backup & Drdata Exist", self.PGOPT['wrnlog'])
1919
1915
  continue
1920
1916
  if barch:
1921
- if not self.endpoint_copy_endpoint(qfile, qfile, bpoint, dpoint, self.PGOPT['emerol']|self.OVERRIDE):
1917
+ bstat = self.endpoint_copy_endpoint(qfile, qfile, bpoint, dpoint, self.PGOPT['emerol']|self.OVERRIDE)
1918
+ if bstat == self.FINISH: bstat = self.check_globus_finished(qfile, bpoint, self.PGOPT['emerol']|self.NOWAIT)
1919
+ if not bstat:
1922
1920
  errcnt += 1
1923
1921
  efiles[i] = 1
1924
1922
  dflags['B'] = bpoint
1925
1923
  continue
1926
1924
  bcnt += 1
1927
1925
  elif darch:
1928
- if not self.endpoint_copy_endpoint(qfile, qfile, dpoint, bpoint, self.PGOPT['emerol']|self.OVERRIDE):
1926
+ dstat = self.endpoint_copy_endpoint(qfile, qfile, dpoint, bpoint, self.PGOPT['emerol']|self.OVERRIDE)
1927
+ if dstat == self.FINISH: dstat = self.check_globus_finished(qfile, dpoint, self.PGOPT['emerol']|self.NOWAIT)
1928
+ if not dstat:
1929
1929
  errcnt += 1
1930
1930
  efiles[i] = 1
1931
1931
  dflags['D'] = dpoint
@@ -1956,9 +1956,9 @@ class DsArch(PgArch, PgMeta):
1956
1956
  self.check_background(None, 0, self.LOGWRN, 1)
1957
1957
  for i in range(self.ALLCNT):
1958
1958
  if barchs[i]:
1959
- self.validate_backarch(qfiles[i], "{}-{}".format(bpoint, qfiles[i]), i)
1959
+ self.validate_backarch(qfiles[i], "{}-{}".format(dpoint, qfiles[i]), bpoint, i)
1960
1960
  elif qfiles[i]:
1961
- self.validate_backarch(qfiles[i], "{}-{}".format(dpoint, qfiles[i]), i)
1961
+ self.validate_backarch(qfiles[i], "{}-{}".format(bpoint, qfiles[i]), dpoint, i)
1962
1962
  if bcnt > 0: self.pglog("{} of {} Backup file{} Cross Copied for {}".format(bcnt, self.ALLCNT, s, dsid), self.PGOPT['emllog'])
1963
1963
  if dcnt > 0: self.pglog("{} of {} Drdata file{} Cross Copied for {}".format(dcnt, self.ALLCNT, s, dsid), self.PGOPT['emllog'])
1964
1964
  if self.PGLOG['DSCHECK']:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsarch
3
- Version: 3.0.9
3
+ Version: 3.0.11
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