From 08e0c43dc771b295cfa33a8702333c43049feadd Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 23 Jan 2022 14:17:16 +0100 Subject: [PATCH] fix: follow redirects, update wakemeops repo url --- src/wakemebot/apt.py | 2 +- src/wakemebot/cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wakemebot/apt.py b/src/wakemebot/apt.py index 0381777..d4c7f5b 100644 --- a/src/wakemebot/apt.py +++ b/src/wakemebot/apt.py @@ -84,7 +84,7 @@ def _build_repository_component( def parse_repository(repository_url: str, distribution: str) -> Repository: - with httpx.Client(base_url=repository_url) as client: + with httpx.Client(base_url=repository_url, follow_redirects=True) as client: release = _download_repository_release_file(client, distribution) architectures = release["Architectures"].split(" ") components = release["Components"].split(" ") diff --git a/src/wakemebot/cli.py b/src/wakemebot/cli.py index da8e358..c63eb7e 100644 --- a/src/wakemebot/cli.py +++ b/src/wakemebot/cli.py @@ -25,7 +25,7 @@ def version() -> None: @app.command(name="docs", help="Update documentation") def update_documentation( debian_repository: str = typer.Option( - "http://deb.wakemeops.com/ stable", + "http://deb.wakemeops.com/wakemeops/ stable", "--repository", "-r", envvar="OPS2DEB_REPOSITORY",