File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,11 @@ def _verify_service_stop(self) -> None:
147
147
if not storage ['arguments' ].get ('skip_ntp' , False ):
148
148
info (_ ('Waiting for time sync (timedatectl show) to complete.' ))
149
149
150
- _started_wait = time .time ()
151
- _notified = False
150
+ started_wait = time .time ()
151
+ notified = False
152
152
while True :
153
- if not _notified and time .time () - _started_wait > 5 :
154
- _notified = True
153
+ if not notified and time .time () - started_wait > 5 :
154
+ notified = True
155
155
warn (
156
156
_ ("Time synchronization not completing, while you wait - check the docs for workarounds: https://archinstall.readthedocs.io/" ))
157
157
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ def speed(self) -> float:
48
48
elif self ._speedtest_retries < 1 :
49
49
self ._speedtest_retries = 1
50
50
51
- _retry = 0
52
- while _retry < self ._speedtest_retries and self ._speed is None :
51
+ retry = 0
52
+ while retry < self ._speedtest_retries and self ._speed is None :
53
53
debug (f"Checking download speed of { self ._hostname } [{ self .score } ] by fetching: { self .url } core/os/x86_64/core.db" )
54
54
req = urllib .request .Request (url = f"{ self .url } core/os/x86_64/core.db" )
55
55
@@ -71,7 +71,7 @@ def speed(self) -> float:
71
71
debug (f" speed: <undetermined> ({ error } ), skip" )
72
72
self ._speed = 0
73
73
74
- _retry += 1
74
+ retry += 1
75
75
76
76
if self ._speed is None :
77
77
self ._speed = 0
@@ -103,8 +103,8 @@ def validate_score(cls, value: int) -> int | None:
103
103
104
104
@model_validator (mode = 'after' )
105
105
def debug_output (self , validation_info ) -> 'MirrorStatusEntryV3' :
106
- self ._hostname , * _port = urllib .parse .urlparse (self .url ).netloc .split (':' , 1 )
107
- self ._port = int (_port [0 ]) if _port and len (_port ) >= 1 else None
106
+ self ._hostname , * port = urllib .parse .urlparse (self .url ).netloc .split (':' , 1 )
107
+ self ._port = int (port [0 ]) if port and len (port ) >= 1 else None
108
108
109
109
debug (f"Loaded mirror { self ._hostname } " + (f" with current score of { round (self .score )} " if self .score else '' ))
110
110
return self
You can’t perform that action at this time.
0 commit comments