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.
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/PKG-INFO +1 -1
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/pyproject.toml +1 -1
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/src/rda_python_dsquasar/dsquasar.py +15 -11
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/src/rda_python_dsquasar.egg-info/PKG-INFO +1 -1
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/LICENSE +0 -0
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/README.md +0 -0
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/setup.cfg +0 -0
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/src/rda_python_dsquasar/__init__.py +0 -0
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/src/rda_python_dsquasar/ds_quasar.py +0 -0
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/src/rda_python_dsquasar.egg-info/SOURCES.txt +0 -0
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/src/rda_python_dsquasar.egg-info/dependency_links.txt +0 -0
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/src/rda_python_dsquasar.egg-info/entry_points.txt +0 -0
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/src/rda_python_dsquasar.egg-info/requires.txt +0 -0
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/src/rda_python_dsquasar.egg-info/top_level.txt +0 -0
- {rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/test/test_dsquasar.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_dsquasar
|
|
3
|
-
Version: 2.0.
|
|
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
|
|
@@ -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 =
|
|
943
|
-
if
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
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 += "{}/
|
|
965
|
+
if checksum: msg += "{}/".format(checksum)
|
|
966
|
+
msg += "{}/{}/{}".format(info['data_size'], info['date_modified'], info['time_modified'])
|
|
964
967
|
msg += "\nDBS:"
|
|
965
|
-
msg += "{}/
|
|
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])
|
{rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/src/rda_python_dsquasar.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_dsquasar
|
|
3
|
-
Version: 2.0.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/src/rda_python_dsquasar/ds_quasar.py
RENAMED
|
File without changes
|
{rda_python_dsquasar-2.0.1 → rda_python_dsquasar-2.0.2}/src/rda_python_dsquasar.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|