pyreposync 0.2.1__py3-none-any.whl → 0.2.2__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 +11 -2
- {pyreposync-0.2.1.dist-info → pyreposync-0.2.2.dist-info}/METADATA +1 -1
- {pyreposync-0.2.1.dist-info → pyreposync-0.2.2.dist-info}/RECORD +6 -6
- {pyreposync-0.2.1.dist-info → pyreposync-0.2.2.dist-info}/WHEEL +0 -0
- {pyreposync-0.2.1.dist-info → pyreposync-0.2.2.dist-info}/entry_points.txt +0 -0
- {pyreposync-0.2.1.dist-info → pyreposync-0.2.2.dist-info}/licenses/LICENSE.txt +0 -0
pyreposync/sync_rpm.py
CHANGED
@@ -86,15 +86,24 @@ class SyncRPM(SyncGeneric):
|
|
86
86
|
self.log.error(
|
87
87
|
f"could not migrate {location}: {destination_old} not found"
|
88
88
|
)
|
89
|
-
continue
|
90
89
|
except OSError as err:
|
91
90
|
self.log.error(f"could not migrate {location}: {err}")
|
92
|
-
continue
|
93
91
|
|
94
92
|
for snap in self.snap_list_timestamp_snapshots():
|
95
93
|
self.log.info(f"migrating {snap}")
|
96
94
|
base_path = f"{self.destination}/snap/{self.reponame}/{snap}"
|
97
95
|
for location, hash_algo, hash_sum in self.packages(base_path=base_path):
|
96
|
+
destination_old = f"{self.destination}/sync/{self.reponame}/{location}"
|
97
|
+
destination_new = f"{self.destination}/sync/{self.reponame}/{location}.{hash_algo}.{hash_sum}"
|
98
|
+
try:
|
99
|
+
os.rename(destination_old, destination_new)
|
100
|
+
except FileNotFoundError:
|
101
|
+
self.log.error(
|
102
|
+
f"could not migrate {location}: {destination_old} not found"
|
103
|
+
)
|
104
|
+
except OSError as err:
|
105
|
+
self.log.error(f"could not migrate {location}: {err}")
|
106
|
+
|
98
107
|
dst = f"{base_path}/{location}"
|
99
108
|
src = f"{self.destination}/sync/{self.reponame}/{location}.{hash_algo}.{hash_sum}"
|
100
109
|
try:
|
@@ -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=v9NpP_OA60NmVawEmFyk8j5nALLK8rZqxhCWeBXR5DM,10739
|
7
|
+
pyreposync-0.2.2.dist-info/METADATA,sha256=BiyuASP9P7J9G1H8aagYyjUl5WAR4iDJAp_gZVSho_0,1565
|
8
|
+
pyreposync-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
+
pyreposync-0.2.2.dist-info/entry_points.txt,sha256=9LsBDWOF3O6_3ONP3Lc-4v1MTt5ay0Xv-TMcFbOIt2s,47
|
10
|
+
pyreposync-0.2.2.dist-info/licenses/LICENSE.txt,sha256=lwnJoIo7uwc0h6y6gC_RYqJkvjplViV3Ad6u7pQM4Bw,1084
|
11
|
+
pyreposync-0.2.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|