From 55744a84a60ed279746fbb58c661ce6b4e02ed4f Mon Sep 17 00:00:00 2001 From: boyska Date: Sun, 29 Jan 2023 10:50:17 +0100 Subject: [PATCH] don't expand globs on HTTP (it just makes no sense) --- feed | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/feed b/feed index e0059fe..4d856e0 100755 --- a/feed +++ b/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