From 819a8461a42c92492e8f20ac0a6422e26388d47b Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Wed, 16 Sep 2020 17:41:45 +0800 Subject: [PATCH] Use deb.debian.org instead of ftp.debian.org --- docs/usage.rst | 2 +- nvchecker_source/apt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage.rst b/docs/usage.rst index 44789e4..5670ce0 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -622,7 +622,7 @@ apt Name of the APT package. mirror - URL of the repository (defaults to http://ftp.debian.org/debian/) + URL of the repository (defaults to http://deb.debian.org/debian/) suite Name of the APT repository release (jessie, wheezy, etc, defaults to sid) diff --git a/nvchecker_source/apt.py b/nvchecker_source/apt.py index 51fc1b4..7610b88 100644 --- a/nvchecker_source/apt.py +++ b/nvchecker_source/apt.py @@ -23,7 +23,7 @@ async def get_url(url): async def get_version(name, conf, *, cache, **kwargs): pkg = conf.get('apt') or name - mirror = conf.get('mirror', "http://ftp.debian.org/debian/") + mirror = conf.get('mirror', "http://deb.debian.org/debian/") suite = conf.get('suite', 'sid') repo = conf.get('repo', 'main') arch = conf.get('arch', 'amd64')