pyreposync 0.2.3__py3-none-any.whl → 0.2.4__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
@@ -65,7 +65,11 @@ class SyncRPM(SyncGeneric):
65
65
  root = xml.etree.ElementTree.parse(source).getroot()
66
66
  else:
67
67
  with open(primary, "rb") as source:
68
- root = xml.etree.ElementTree.parse(source).getroot()
68
+ try:
69
+ root = xml.etree.ElementTree.parse(source).getroot()
70
+ except xml.etree.ElementTree.ParseError as err:
71
+ self.log.fatal(f"could not parse {primary}: {err}")
72
+ raise OSRepoSyncException(f"could not parse {primary}: {err}")
69
73
  packages = root.findall("{http://linux.duke.edu/metadata/common}package")
70
74
  for package in packages:
71
75
  checksum = package.find("{http://linux.duke.edu/metadata/common}checksum")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyreposync
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: Orbit Api
5
5
  Project-URL: Source, https://github.com/schlitzered/pyreposync
6
6
  Author-email: "Stephan.Schultchen" <sschultchen@gmail.com>
@@ -3,9 +3,9 @@ pyreposync/downloader.py,sha256=828bIMCctd1X6I1w91-XHytQ1M5fmxkEw0YDKd5nvAY,4764
3
3
  pyreposync/exceptions.py,sha256=IlnvhNaffQQ6geOgrjCciNFVbFpNcycH4ijSuMTbrGA,169
4
4
  pyreposync/sync_deb.py,sha256=d9UggP-wW5CXXV4bjmd0gk7i0BM9xDeEJP8XEY_tYN0,8364
5
5
  pyreposync/sync_generic.py,sha256=wN5hPcIacvQiMQoajcf7WSbiBGqxI86CYwfVnq1fR38,5693
6
- pyreposync/sync_rpm.py,sha256=5xIV0zG6FLL4Xv1zuVoPodYbg689qNBy2rZixYj73JA,11184
7
- pyreposync-0.2.3.dist-info/METADATA,sha256=OT6kup82ufQsSJ_59i-smN52NT4GMDVvdyf7HWrDPLo,1565
8
- pyreposync-0.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- pyreposync-0.2.3.dist-info/entry_points.txt,sha256=9LsBDWOF3O6_3ONP3Lc-4v1MTt5ay0Xv-TMcFbOIt2s,47
10
- pyreposync-0.2.3.dist-info/licenses/LICENSE.txt,sha256=lwnJoIo7uwc0h6y6gC_RYqJkvjplViV3Ad6u7pQM4Bw,1084
11
- pyreposync-0.2.3.dist-info/RECORD,,
6
+ pyreposync/sync_rpm.py,sha256=yL7fuGmg3yMbu3x5CtBF_3UAdsK4aFW-0saFJaiCB54,11428
7
+ pyreposync-0.2.4.dist-info/METADATA,sha256=W5rAwK4CK2UWpF-YpbiaeVZoovx49whfeVVXNr_e3Zo,1565
8
+ pyreposync-0.2.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ pyreposync-0.2.4.dist-info/entry_points.txt,sha256=9LsBDWOF3O6_3ONP3Lc-4v1MTt5ay0Xv-TMcFbOIt2s,47
10
+ pyreposync-0.2.4.dist-info/licenses/LICENSE.txt,sha256=lwnJoIo7uwc0h6y6gC_RYqJkvjplViV3Ad6u7pQM4Bw,1084
11
+ pyreposync-0.2.4.dist-info/RECORD,,