rda-python-dsquasar 2.0.1__tar.gz → 2.0.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsquasar
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: RDA Python package to backup and recover RDA data archives to and from GLOBUS Quasar backup server
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dsquasar
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rda_python_dsquasar"
7
- version = "2.0.1"
7
+ version = "2.0.2"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -928,7 +928,7 @@ class DsQuasar(PgCMD, PgSplit):
928
928
  self.object_copy_local(lfile, ofile, bucket, self.ERRACT)
929
929
  cinfo = self.check_local_file(lfile, 32, self.ERRACT)
930
930
  if not cinfo: return False
931
- info['checksum'] = cinfo['checksum']
931
+ if 'checksum' in cinfo: info['checksum'] = cinfo['checksum']
932
932
  lname = 'OBS'
933
933
  else:
934
934
  lfile = "{}/{}/".format(chome, dsid)
@@ -939,14 +939,16 @@ class DsQuasar(PgCMD, PgSplit):
939
939
  lname = 'DSK'
940
940
  record = {}
941
941
  msg = ''
942
- checksum = info['checksum']
943
- if not pgrec['checksum']:
944
- msg = "Checksum misses"
945
- record['checksum'] = checksum
946
- pgrec['checksum'] = ''
947
- elif checksum != pgrec['checksum']:
948
- msg = "Checksum mismatch"
949
- record['checksum'] = checksum
942
+ checksum = None
943
+ if 'checksum' in info:
944
+ checksum = info['checksum']
945
+ if not pgrec['checksum']:
946
+ msg = "Checksum misses"
947
+ record['checksum'] = checksum
948
+ pgrec['checksum'] = ''
949
+ elif checksum != pgrec['checksum']:
950
+ msg = "Checksum mismatch"
951
+ record['checksum'] = checksum
950
952
  if info['data_size'] != pgrec['data_size']:
951
953
  if msg: msg += ", "
952
954
  msg += "Size mismatch"
@@ -960,9 +962,11 @@ class DsQuasar(PgCMD, PgSplit):
960
962
  if msg:
961
963
  msg = "{}-{}-{}: {}".format(dsid, cate.upper(), fname, msg)
962
964
  msg += "\n{}:".format(lname)
963
- msg += "{}/{}/{}/{}".format(checksum, info['data_size'], info['date_modified'], info['time_modified'])
965
+ if checksum: msg += "{}/".format(checksum)
966
+ msg += "{}/{}/{}".format(info['data_size'], info['date_modified'], info['time_modified'])
964
967
  msg += "\nDBS:"
965
- msg += "{}/{}/{}/{}".format(pgrec['checksum'], pgrec['data_size'], pgrec['date_modified'], pgrec['time_modified'])
968
+ if checksum: msg += "{}/".format(pgrec['checksum'])
969
+ msg += "{}/{}/{}".format(pgrec['data_size'], pgrec['date_modified'], pgrec['time_modified'])
966
970
  self.pglog(msg, self.LOGACT)
967
971
  cid = cate + 'id'
968
972
  fcnd = "{} = {}".format(cid, pgrec[cid])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsquasar
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: RDA Python package to backup and recover RDA data archives to and from GLOBUS Quasar backup server
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dsquasar