don't expand globs on HTTP
(it just makes no sense)
This commit is contained in:
parent
751111143e
commit
55744a84a6
1 changed files with 5 additions and 1 deletions
6
feed
6
feed
|
@ -581,7 +581,11 @@ def expand_glob(sources: list, weights: list) -> tuple:
|
|||
new_weights = []
|
||||
|
||||
for src, weight in zip(sources, weights):
|
||||
expanded_source = glob.glob(src)
|
||||
if not src.startswith('http://') and not src.startswith('https://') and '*' in src:
|
||||
expanded_source = glob.glob(src)
|
||||
else:
|
||||
expanded_source = [src]
|
||||
logging.debug("glob: %s -> %s", src, expanded_source)
|
||||
expanded_weight = [weight] * len(expanded_source)
|
||||
|
||||
new_sources += expanded_source
|
||||
|
|
Loading…
Reference in a new issue