void-packages/srcpkgs/python3-publicsuffix2/patches/system-psl.patch

20 lines
715 B
Diff

--- a/src/publicsuffix2/__init__.py
+++ b/src/publicsuffix2/__init__.py
@@ -55,7 +55,7 @@ except ImportError:
PSL_URL = 'https://publicsuffix.org/list/public_suffix_list.dat'
BASE_DIR = path.dirname(__file__)
-PSL_FILE = path.join(BASE_DIR, 'public_suffix_list.dat')
+PSL_FILE = '/usr/share/publicsuffix/public_suffix_list.dat'
ABOUT_PSL_FILE = path.join(BASE_DIR, 'public_suffix_list.ABOUT')
--- a/src/publicsuffix2/public_suffix_list.ABOUT
+++ b/src/publicsuffix2/public_suffix_list.ABOUT
@@ -8,4 +8,4 @@ home_url: https://publicsuffix.org/
owner: Mozilla
copyright: Copyright (c) Mozilla and others
license: mpl-2.0
-license_text_file: mpl-2.0.LICENSE
+license_text_file: /usr/share/licenses/MPL-2.0