pyreposync 0.2.9__py3-none-any.whl → 0.2.11__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.
pyreposync/sync_rpm.py CHANGED
@@ -6,9 +6,10 @@ import lzma
6
6
  import configparser
7
7
  import os
8
8
  import shutil
9
-
10
9
  import xml.etree.ElementTree
11
10
 
11
+ import zstandard
12
+
12
13
  from pyreposync.sync_generic import SyncGeneric
13
14
 
14
15
  from pyreposync.exceptions import OSRepoSyncException
@@ -72,6 +73,9 @@ class SyncRPM(SyncGeneric):
72
73
  elif primary.endswith(".xz"):
73
74
  with lzma.open(primary, "rb") as source:
74
75
  root = xml.etree.ElementTree.parse(source).getroot()
76
+ elif primary.endswith(".zst"):
77
+ with zstandard.open(primary, "rb") as source:
78
+ root = xml.etree.ElementTree.parse(source).getroot()
75
79
  else:
76
80
  with open(primary, "rb") as source:
77
81
  root = xml.etree.ElementTree.parse(source).getroot()
@@ -259,9 +263,7 @@ class SyncRPM(SyncGeneric):
259
263
  self.log.error(f"could not copy {self.treeinfo}: {err}")
260
264
  self.log.error(dst)
261
265
  for location, hash_algo, hash_sum in self.treeinfo_files():
262
- dst = (
263
- f"{self.destination}/snap/{self.reponame}/{self.date}/{location}"
264
- )
266
+ dst = f"{self.destination}/snap/{self.reponame}/{self.date}/{location}"
265
267
  src = f"{self.destination}/sync/{self.reponame}/{location}"
266
268
  try:
267
269
  os.makedirs(os.path.dirname(dst))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyreposync
3
- Version: 0.2.9
3
+ Version: 0.2.11
4
4
  Summary: rpm and deb822 repository sync tool
5
5
  Project-URL: Source, https://github.com/schlitzered/pyreposync
6
6
  Author-email: "Stephan.Schultchen" <sschultchen@gmail.com>
@@ -0,0 +1,11 @@
1
+ pyreposync/__init__.py,sha256=fHirsBBkEk806RJwVKQZHgujQZRk13YnokX-8rp_QJE,17117
2
+ pyreposync/downloader.py,sha256=rEv9lOg2X1VwCtADO63-yceZAZCeSJOBIGbyRsEnKQU,5275
3
+ pyreposync/exceptions.py,sha256=IlnvhNaffQQ6geOgrjCciNFVbFpNcycH4ijSuMTbrGA,169
4
+ pyreposync/sync_deb822.py,sha256=7Cuzg-1pC8WDiFTxw-qH26VsfzOEY9IxfZztGfLkdKg,10513
5
+ pyreposync/sync_generic.py,sha256=OdbG9KvyMRrow_9p0MOsz01bkQ7EXbMzfUqkmqhVFZs,5873
6
+ pyreposync/sync_rpm.py,sha256=qtwRZz8jtbMAlOk9ApUyQRFCb1LSawdMk2hFxz-pkb4,11944
7
+ pyreposync-0.2.11.dist-info/METADATA,sha256=AJW7WJwqHBcjWukoSS7QJ8Pgy_cgucQhUOwTmJ21IRE,1592
8
+ pyreposync-0.2.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ pyreposync-0.2.11.dist-info/entry_points.txt,sha256=9LsBDWOF3O6_3ONP3Lc-4v1MTt5ay0Xv-TMcFbOIt2s,47
10
+ pyreposync-0.2.11.dist-info/licenses/LICENSE.txt,sha256=lwnJoIo7uwc0h6y6gC_RYqJkvjplViV3Ad6u7pQM4Bw,1084
11
+ pyreposync-0.2.11.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- pyreposync/__init__.py,sha256=fHirsBBkEk806RJwVKQZHgujQZRk13YnokX-8rp_QJE,17117
2
- pyreposync/downloader.py,sha256=rEv9lOg2X1VwCtADO63-yceZAZCeSJOBIGbyRsEnKQU,5275
3
- pyreposync/exceptions.py,sha256=IlnvhNaffQQ6geOgrjCciNFVbFpNcycH4ijSuMTbrGA,169
4
- pyreposync/sync_deb822.py,sha256=7Cuzg-1pC8WDiFTxw-qH26VsfzOEY9IxfZztGfLkdKg,10513
5
- pyreposync/sync_generic.py,sha256=OdbG9KvyMRrow_9p0MOsz01bkQ7EXbMzfUqkmqhVFZs,5873
6
- pyreposync/sync_rpm.py,sha256=bl1mVX8LZt5AF33o-oVsmaNwzC9teLN-quQMkQrwyUk,11781
7
- pyreposync-0.2.9.dist-info/METADATA,sha256=zyQAV1E3SuckYLntloYPa9U1Hzjr4adIXvJ-bt87JAA,1591
8
- pyreposync-0.2.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- pyreposync-0.2.9.dist-info/entry_points.txt,sha256=9LsBDWOF3O6_3ONP3Lc-4v1MTt5ay0Xv-TMcFbOIt2s,47
10
- pyreposync-0.2.9.dist-info/licenses/LICENSE.txt,sha256=lwnJoIo7uwc0h6y6gC_RYqJkvjplViV3Ad6u7pQM4Bw,1084
11
- pyreposync-0.2.9.dist-info/RECORD,,