Description: Do not require Internet access during building.

intersphinx want to fetch some mapping data, and was set up to use
 the Internet to find it.  Use a local file from python-doc instead to
 avoid violating Debian policy 4.9.
Author: Petter Reinholdtsen <pere@debian.org>
This commit is contained in:
su-fang 2023-02-07 14:33:01 +08:00 committed by cckylin-cibot
parent c91ea406ae
commit 2ca5670229
3 changed files with 29 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
python-requests-toolbelt (0.10.1-ok2) yangtze; urgency=medium
* Apply patch.
-- sufang <sufang@kylinos.cn> Tue, 07 Feb 2023 14:31:51 +0800
python-requests-toolbelt (0.10.1-ok1) yangtze; urgency=medium
* Build for openkylin.

View File

@ -0,0 +1,22 @@
From: su-fang <sufang@kylinos.cn>
Date: Tue, 7 Feb 2023 14:33:01 +0800
Subject: Description: Do not require Internet access during building.
intersphinx want to fetch some mapping data,
and was set up to use the Internet to find it. Use a local file from
python-doc instead to avoid violating Debian policy 4.9. Author: Petter
Reinholdtsen <pere@debian.org>
---
docs/conf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/conf.py b/docs/conf.py
index 9f45876..0844991 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -268,4 +268,4 @@ texinfo_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'https://docs.python.org/': None}
+intersphinx_mapping = {'/usr/share/doc/python-doc/html': None}

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
0001-Description-Do-not-require-Internet-access-during-bu.patch