pyreposync 0.2.0__py3-none-any.whl → 0.2.1__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 +5 -3
- {pyreposync-0.2.0.dist-info → pyreposync-0.2.1.dist-info}/METADATA +2 -2
- {pyreposync-0.2.0.dist-info → pyreposync-0.2.1.dist-info}/RECORD +6 -6
- {pyreposync-0.2.0.dist-info → pyreposync-0.2.1.dist-info}/WHEEL +0 -0
- {pyreposync-0.2.0.dist-info → pyreposync-0.2.1.dist-info}/entry_points.txt +0 -0
- {pyreposync-0.2.0.dist-info → pyreposync-0.2.1.dist-info}/licenses/LICENSE.txt +0 -0
pyreposync/sync_rpm.py
CHANGED
@@ -46,7 +46,7 @@ class SyncRPM(SyncGeneric):
|
|
46
46
|
if not base_path:
|
47
47
|
base_path = f"{self.destination}/sync/{self.reponame}"
|
48
48
|
primary = None
|
49
|
-
for location, hash_algo, hash_sum in self.repomd_files():
|
49
|
+
for location, hash_algo, hash_sum in self.repomd_files(base_path=base_path):
|
50
50
|
destination = f"{base_path}/{location}"
|
51
51
|
if "primary.xml" in destination.lower():
|
52
52
|
primary = destination
|
@@ -153,8 +153,10 @@ class SyncRPM(SyncGeneric):
|
|
153
153
|
destination = f"{self.destination}/sync/{self.reponame}/{file}"
|
154
154
|
self.downloader.get(url, destination, hash_sum, hash_algo, replace=True)
|
155
155
|
|
156
|
-
def repomd_files(self):
|
157
|
-
|
156
|
+
def repomd_files(self, base_path=None):
|
157
|
+
if not base_path:
|
158
|
+
base_path = f"{self.destination}/sync/{self.reponame}"
|
159
|
+
base_path = f"{base_path}/repodata/repomd.xml"
|
158
160
|
repomd = xml.etree.ElementTree.parse(base_path).getroot()
|
159
161
|
datas = repomd.findall("{http://linux.duke.edu/metadata/repo}data")
|
160
162
|
for data in datas:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pyreposync
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.1
|
4
4
|
Summary: Orbit Api
|
5
5
|
Project-URL: Source, https://github.com/schlitzered/pyreposync
|
6
6
|
Author-email: "Stephan.Schultchen" <sschultchen@gmail.com>
|
@@ -27,5 +27,5 @@ License: The MIT License (MIT)
|
|
27
27
|
THE SOFTWARE.
|
28
28
|
License-File: LICENSE.txt
|
29
29
|
Classifier: Programming Language :: Python
|
30
|
-
Requires-Python: >=3.
|
30
|
+
Requires-Python: >=3.6
|
31
31
|
Requires-Dist: requests
|
@@ -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=taH4Tf0i6alSR0Z_iJ21LfiAWZelcU74DnYCQ6EXwhs,8201
|
5
5
|
pyreposync/sync_generic.py,sha256=vNNuh-hJp3Qj_AqrPc7S6OibHhsFKSFRaTv_2Aj9H9Y,5502
|
6
|
-
pyreposync/sync_rpm.py,sha256=
|
7
|
-
pyreposync-0.2.
|
8
|
-
pyreposync-0.2.
|
9
|
-
pyreposync-0.2.
|
10
|
-
pyreposync-0.2.
|
11
|
-
pyreposync-0.2.
|
6
|
+
pyreposync/sync_rpm.py,sha256=odQczvyKCj5w-iB2KhkzJpj8ZnIuBPoTMCgDM1ddfXQ,10205
|
7
|
+
pyreposync-0.2.1.dist-info/METADATA,sha256=AgufaQ-v626kKo0eSMioqoJDvatIYVNPC-s0Zm4IHDo,1565
|
8
|
+
pyreposync-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
+
pyreposync-0.2.1.dist-info/entry_points.txt,sha256=9LsBDWOF3O6_3ONP3Lc-4v1MTt5ay0Xv-TMcFbOIt2s,47
|
10
|
+
pyreposync-0.2.1.dist-info/licenses/LICENSE.txt,sha256=lwnJoIo7uwc0h6y6gC_RYqJkvjplViV3Ad6u7pQM4Bw,1084
|
11
|
+
pyreposync-0.2.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|