pyreposync 0.2.3__tar.gz → 0.2.5__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: pyreposync
3
- Version: 0.2.3
3
+ Version: 0.2.5
4
4
  Summary: Orbit Api
5
5
  Project-URL: Source, https://github.com/schlitzered/pyreposync
6
6
  Author-email: "Stephan.Schultchen" <sschultchen@gmail.com>
@@ -14,9 +14,15 @@ loglevel = INFO
14
14
  #baseurl = https://mirror.23m.com/almalinux/9/BaseOS/x86_64/os/
15
15
  #tags = EXTERNAL,OS:AlmaLinux9,BASE,X86_64
16
16
 
17
- [RockyLinux/9/devel/x86_64:rpm]
17
+ #[RockyLinux/9/devel/x86_64:rpm]
18
+ ##baseurl = https://dl.rockylinux.org/pub/rocky/9/devel/x86_64/os/
19
+ ##baseurl = https://mirror.plusline.net/rockylinux/9/devel/x86_64/os/
20
+ #baseurl = https://mirror.23m.com/rocky/9/devel/x86_64/os/
21
+ #tags = EXTERNAL,OS:RockyLinux9,BASE,X86_64
22
+ #allow_missing_packages = true
23
+
24
+ [EL/8/epel/Everything/x86_64:rpm]
18
25
  #baseurl = https://dl.rockylinux.org/pub/rocky/9/devel/x86_64/os/
19
26
  #baseurl = https://mirror.plusline.net/rockylinux/9/devel/x86_64/os/
20
- baseurl = https://mirror.23m.com/rocky/9/devel/x86_64/os/
21
- tags = EXTERNAL,OS:RockyLinux9,BASE,X86_64
22
- allow_missing_packages = true
27
+ baseurl = https://ftp.hosteurope.de/mirror/fedora-epel/8/Everything/x86_64/
28
+ tags = EXTERNAL,OS:EL8,epel,X86_64
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pyreposync"
7
- version = "0.2.3"
7
+ version = "0.2.5"
8
8
  requires-python = ">=3.9"
9
9
  authors = [
10
10
  {name = "Stephan.Schultchen", email = "sschultchen@gmail.com"},
@@ -2,6 +2,7 @@ from shutil import copyfile
2
2
 
3
3
  import bz2
4
4
  import gzip
5
+ import lzma
5
6
  import configparser
6
7
  import os
7
8
  import shutil
@@ -57,15 +58,22 @@ class SyncRPM(SyncGeneric):
57
58
  self.log.fatal("no primary.xml found in repomd.xml")
58
59
  raise OSRepoSyncException("no primary.xml found in repomd.xml")
59
60
 
60
- if primary.endswith(".gz"):
61
- with gzip.open(primary, "rb") as source:
62
- root = xml.etree.ElementTree.parse(source).getroot()
63
- elif primary.endswith("bz2"):
64
- with bz2.open(primary, "rb") as source:
65
- root = xml.etree.ElementTree.parse(source).getroot()
66
- else:
67
- with open(primary, "rb") as source:
68
- root = xml.etree.ElementTree.parse(source).getroot()
61
+ try:
62
+ if primary.endswith(".gz"):
63
+ with gzip.open(primary, "rb") as source:
64
+ root = xml.etree.ElementTree.parse(source).getroot()
65
+ elif primary.endswith(".bz2"):
66
+ with bz2.open(primary, "rb") as source:
67
+ root = xml.etree.ElementTree.parse(source).getroot()
68
+ elif primary.endswith(".xz"):
69
+ with lzma.open(primary, "rb") as source:
70
+ root = xml.etree.ElementTree.parse(source).getroot()
71
+ else:
72
+ with open(primary, "rb") as source:
73
+ root = xml.etree.ElementTree.parse(source).getroot()
74
+ except xml.etree.ElementTree.ParseError as err:
75
+ self.log.fatal(f"could not parse {primary}: {err}")
76
+ raise OSRepoSyncException(f"could not parse {primary}: {err}")
69
77
  packages = root.findall("{http://linux.duke.edu/metadata/common}package")
70
78
  for package in packages:
71
79
  checksum = package.find("{http://linux.duke.edu/metadata/common}checksum")
File without changes
File without changes
File without changes
File without changes
File without changes