Skip to content

Commit 902e3eb

Browse files
committed
fixup: use new OpenWrt CDN
The OpenWrt CDN moved to downloads.cdn.openwrt.org Signed-off-by: Paul Spooren <mail@aparcar.org>
1 parent 864655d commit 902e3eb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

asu/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def create_app(test_config: dict = None) -> Flask:
2222
REDIS_CONN=Redis(),
2323
TESTING=False,
2424
DEBUG=False,
25-
UPSTREAM_URL="https://downloads.openwrt.org",
25+
UPSTREAM_URL="https://downloads.cdn.openwrt.org",
2626
VERSIONS={
2727
"metadata_version": 1,
2828
"branches": [

misc/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
DEBUG=False,
77

88
# where to find the ImageBuildes
9-
UPSTREAM_URL="https://cdn.openwrt.org",
9+
UPSTREAM_URL="https://downloads.cdn.openwrt.org",
1010

1111
# supported versions
1212
VERSIONS={

tests/test_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_build_real(app, httpserver: HTTPServer):
132132
target="ath79/generic",
133133
store_path=app.config["STORE_PATH"],
134134
cache_path=app.config["CACHE_PATH"],
135-
upstream_url="https://cdn.openwrt.org",
135+
upstream_url="https://downloads.cdn.openwrt.org",
136136
version="SNAPSHOT",
137137
profile="tplink_tl-wdr4300-v1",
138138
packages={"tmux", "vim"},

tests/test_janitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_get_json_files(app, httpserver: HTTPServer, redis):
9595

9696

9797
def test_get_packages_arch_real(app, httpserver: HTTPServer, redis):
98-
app.config["UPSTREAM_URL"] = "https://cdn.openwrt.org"
98+
app.config["UPSTREAM_URL"] = "https://downloads.cdn.openwrt.org"
9999
version = app.config["VERSIONS"]["branches"][0]
100100
with app.app_context():
101101
get_packages_arch(version, sources=["base", "luci"])
@@ -105,7 +105,7 @@ def test_get_packages_arch_real(app, httpserver: HTTPServer, redis):
105105
@pytest.mark.slow
106106
@pytest.mark.skip
107107
def test_get_json_files_real(app, httpserver: HTTPServer, redis):
108-
app.config["UPSTREAM_URL"] = "https://cdn.openwrt.org"
108+
app.config["UPSTREAM_URL"] = "https://downloads.cdn.openwrt.org"
109109
version = app.config["VERSIONS"]["branches"][0]
110110
with app.app_context():
111111
get_json_files(version)

0 commit comments

Comments
 (0)