Skip to content

Commit bf347c1

Browse files
committed
- automatically prefix uri lines with mirror:// in rpefetcher if mirror is configured
1 parent 2a3bbab commit bf347c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

aura/prefetch.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,7 @@ def read_uris(file_input: TextIO) -> Iterable[str]:
8888
if line.startswith("#") or not line:
8989
continue
9090
else:
91+
if (not line.startswith("mirror://")) and mirror.LocalMirror.get_mirror_path():
92+
line = "mirror://" + line
93+
9194
yield line

0 commit comments

Comments
 (0)