rda-python-dsarch 2.0.3__py3-none-any.whl → 2.0.5__py3-none-any.whl

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.
@@ -2411,7 +2411,7 @@ class DsArch(PgArch, PgMeta):
2411
2411
  if 'status' in record: self.change_wfile_mode(dsid, file, type, pgrec['status'], record['status'])
2412
2412
  if mlink or pgrec['meta_link'] and pgrec['meta_link'] == 'Y': self.set_meta_link(dsid, file)
2413
2413
  else:
2414
- if record['wfile'] != file: record['wfile'] = file
2414
+ if 'wfile' not in record or record['wfile'] != file: record['wfile'] = file
2415
2415
  record['uid'] = self.PGOPT['UID']
2416
2416
  if 'status' not in record: record['status'] = 'P'
2417
2417
  if not info:
@@ -4123,12 +4123,12 @@ class DsArch(PgArch, PgMeta):
4123
4123
  gindex = "all"
4124
4124
  if not pgrec: continue
4125
4125
  if act == 1 or act&4 and re.search(r'(Y|B|W)', pgrec['meta_link']):
4126
- self.pgsystem("{} -d {} -rw {}".format(self.PGOPT['scm'], dsid, gindex))
4126
+ self.pgsystem("{} -d {} -rw {}".format(self.PGOPT['scm'], dsid, gindex), self.LOGWRN, 1029)
4127
4127
  else:
4128
4128
  pgrec = self.pgget("dataset", "meta_link", dcnd, self.LGEREX)
4129
4129
  if pgrec:
4130
4130
  if act == 1 or act&4 and re.search(r'(Y|B|W)', pgrec['meta_link']):
4131
- self.pgsystem("{} -d {} -rw all".format(self.PGOPT['scm'], dsid))
4131
+ self.pgsystem("{} -d {} -rw all".format(self.PGOPT['scm'], dsid, self.LOGWRN, 1029))
4132
4132
 
4133
4133
  # get web file name for given local file name
4134
4134
  def get_archive_filename(self, lfile):
@@ -35,7 +35,7 @@ class PgArch(PgOPT, PgCMD, PgSplit):
35
35
  'HS' : '', # dataset help software path
36
36
  'SP' : '', # dataset savedpath
37
37
  }
38
- self.ebpaths = {}
38
+ self.webpaths = {}
39
39
  self.savedpaths = {}
40
40
  self.grouptypes = {}
41
41
  self.CORDERS = {}
@@ -465,7 +465,7 @@ class PgMeta(PgCMD, PgSplit):
465
465
  act = logact
466
466
  if act&self.EXITLG:
467
467
  act &= ~self.EXITLG
468
- if self.PGLOG['DSCHECK']: opt |= 256
468
+ if self.PGLOG['DSCHECK']: opt |= 1280 # 256 + 1024
469
469
  self.PGLOG['ERR2STD'] = ["Warning: ", "already up-to-date", "process currently running",
470
470
  "rsync", "No route to host", "''*'"]
471
471
  self.switch_logfile("gatherxml")
@@ -517,7 +517,7 @@ class PgMeta(PgCMD, PgSplit):
517
517
  act = logact
518
518
  if act&self.EXITLG:
519
519
  act &= ~self.EXITLG
520
- if self.PGLOG['DSCHECK']: opt |= 256
520
+ if self.PGLOG['DSCHECK']: opt |= 1280 # 256 + 1024
521
521
  self.PGLOG['ERR2STD'] = ["Warning: "]
522
522
  self.switch_logfile("gatherxml")
523
523
  for d in self.META[c]:
@@ -546,7 +546,7 @@ class PgMeta(PgCMD, PgSplit):
546
546
  opt = 5
547
547
  if logact&self.EXITLG:
548
548
  logact &= ~self.EXITLG
549
- if self.PGLOG['DSCHECK']: opt |= 256
549
+ if self.PGLOG['DSCHECK']: opt |= 1280 # 256 + 1024
550
550
  self.PGLOG['ERR2STD'] = ["Warning: "]
551
551
  self.switch_logfile("gatherxml")
552
552
  if not self.pgsystem("{} -d {} {}".format(self.CMD['DX'], d, file), logact, opt) and self.PGLOG['SYSERR']:
@@ -565,7 +565,7 @@ class PgMeta(PgCMD, PgSplit):
565
565
  act = logact
566
566
  if act&self.EXITLG:
567
567
  act &= ~self.EXITLG
568
- if self.PGLOG['DSCHECK']: opt |= 256
568
+ if self.PGLOG['DSCHECK']: opt |= 1280 # 256 + 1024
569
569
  self.PGLOG['ERR2STD'] = ["Warning: "]
570
570
  self.switch_logfile("gatherxml")
571
571
  for d in self.META[c]:
@@ -605,7 +605,7 @@ class PgMeta(PgCMD, PgSplit):
605
605
  act = logact
606
606
  if act&self.EXITLG:
607
607
  act &= ~self.EXITLG
608
- if self.PGLOG['DSCHECK']: opt |= 256
608
+ if self.PGLOG['DSCHECK']: opt |= 1280 # 256 + 1024
609
609
  self.PGLOG['ERR2STD'] = ["Warning: "]
610
610
  self.switch_logfile("gatherxml")
611
611
  for d in self.META[c]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsarch
3
- Version: 2.0.3
3
+ Version: 2.0.5
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
@@ -0,0 +1,14 @@
1
+ rda_python_dsarch/PgArch.py,sha256=d1Y87MT49tgQygLAffNff9Qs4c12KXspYyDG8liSnpQ,59452
2
+ rda_python_dsarch/PgMeta.py,sha256=FV4GytgnJK00FUlyM6iHqpNd7-XTVHO1j5tZtcLTWgY,26845
3
+ rda_python_dsarch/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
4
+ rda_python_dsarch/ds_arch.py,sha256=6bR0y6_rhIXyvbuYd-oZfL1YcaHhWBkojjzYz1yCrVg,233810
5
+ rda_python_dsarch/dsarch.py,sha256=3IOiKpAWlduPsJB-doLVMEd-k4pfq2Un3cQ8ZOB9Q2Q,233008
6
+ rda_python_dsarch/dsarch.usg,sha256=vsxGneGCIyzqZx5mwQ8xkTmdNmuny56LgokgDkWt5xE,132034
7
+ rda_python_dsarch/pg_arch.py,sha256=hMAq6IwWzDjjiSkouVcPNZzNJ0nmTT88y-GZRi8SJhE,64599
8
+ rda_python_dsarch/pg_meta.py,sha256=In1Kwe3mJJZ09Ac-SceF7NFdW3AoE01dDFw6eaSQtQk,29623
9
+ rda_python_dsarch-2.0.5.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
10
+ rda_python_dsarch-2.0.5.dist-info/METADATA,sha256=D7lCIn8iH4D3zmwuItdE3g2x5EJBfqLfjfc_dwjrH24,670
11
+ rda_python_dsarch-2.0.5.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
12
+ rda_python_dsarch-2.0.5.dist-info/entry_points.txt,sha256=GR7ShgBv8qixS2l4ufAu-jw3N09pbo9zRewwPHqaOxo,60
13
+ rda_python_dsarch-2.0.5.dist-info/top_level.txt,sha256=-vwcMgUXbBdHscvAKB3De9zKac3m_s_FaKIdApP1FGY,18
14
+ rda_python_dsarch-2.0.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,14 +0,0 @@
1
- rda_python_dsarch/PgArch.py,sha256=d1Y87MT49tgQygLAffNff9Qs4c12KXspYyDG8liSnpQ,59452
2
- rda_python_dsarch/PgMeta.py,sha256=FV4GytgnJK00FUlyM6iHqpNd7-XTVHO1j5tZtcLTWgY,26845
3
- rda_python_dsarch/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
4
- rda_python_dsarch/ds_arch.py,sha256=6bR0y6_rhIXyvbuYd-oZfL1YcaHhWBkojjzYz1yCrVg,233810
5
- rda_python_dsarch/dsarch.py,sha256=dN86W98fU6vbp8DnOMpTxVkA-NTvmxLVlaMiHFfo15Y,232945
6
- rda_python_dsarch/dsarch.usg,sha256=vsxGneGCIyzqZx5mwQ8xkTmdNmuny56LgokgDkWt5xE,132034
7
- rda_python_dsarch/pg_arch.py,sha256=Ky_RfY8q0Uq7OjK1UC8npkW8v_eyk_aAN7bypecYP-w,64598
8
- rda_python_dsarch/pg_meta.py,sha256=f_7w9UxhJk1i-QfkmDvNCPrrDYGcOkNPNImXLNZw0sA,29548
9
- rda_python_dsarch-2.0.3.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
10
- rda_python_dsarch-2.0.3.dist-info/METADATA,sha256=qZq3KrenH-LV_Np3E0NtnoM93SrEvQNiTE06qVy65vo,670
11
- rda_python_dsarch-2.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- rda_python_dsarch-2.0.3.dist-info/entry_points.txt,sha256=GR7ShgBv8qixS2l4ufAu-jw3N09pbo9zRewwPHqaOxo,60
13
- rda_python_dsarch-2.0.3.dist-info/top_level.txt,sha256=-vwcMgUXbBdHscvAKB3De9zKac3m_s_FaKIdApP1FGY,18
14
- rda_python_dsarch-2.0.3.dist-info/RECORD,,