Remove python-dns conflict by moving the dns module into a custom subdirectory.

This commit is contained in:
Bastian Kleineidam 2012-12-07 22:19:32 +01:00
parent 45a4bbdaa9
commit efbbb656a1
6 changed files with 15 additions and 7 deletions

2
debian/changelog vendored
View file

@ -2,6 +2,8 @@ linkchecker (8.3-1) UNRELEASED; urgency=low
* New upstream release. * New upstream release.
* Remove unneeded dependency on pysqlite. * Remove unneeded dependency on pysqlite.
* Remove conflict on python-dns.
Closes: #694809
-- Bastian Kleineidam <calvin@debian.org> Wed, 14 Nov 2012 18:49:41 +0100 -- Bastian Kleineidam <calvin@debian.org> Wed, 14 Nov 2012 18:49:41 +0100

1
debian/control vendored
View file

@ -17,7 +17,6 @@ Package: linkchecker
Architecture: any Architecture: any
Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}, python (>= 2.7.2) Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}, python (>= 2.7.2)
Provides: ${python:Provides} Provides: ${python:Provides}
Conflicts: python-dnspython
Suggests: clamav-daemon, Suggests: clamav-daemon,
linkchecker-gui, linkchecker-gui,
linkchecker-web, linkchecker-web,

View file

@ -1,6 +1,6 @@
usr/bin/linkchecker usr/bin/linkchecker
usr/lib/python*/dist-packages/_LinkChecker_configdata.py usr/lib/python*/dist-packages/_LinkChecker_configdata.py
usr/lib/python*/dist-packages/dns usr/lib/python*/dist-packages/linkcheck_dns
usr/lib/python*/dist-packages/linkcheck/*.py usr/lib/python*/dist-packages/linkcheck/*.py
usr/lib/python*/dist-packages/linkcheck/HtmlParser usr/lib/python*/dist-packages/linkcheck/HtmlParser
usr/lib/python*/dist-packages/linkcheck/bookmarks usr/lib/python*/dist-packages/linkcheck/bookmarks

View file

@ -2,6 +2,8 @@
Changes: Changes:
- logging: Print system arguments (sys.argv) in internal error information. - logging: Print system arguments (sys.argv) in internal error information.
- installation: Install the dns Python module into linkcheck_dns subdirectory to avoid
conflicts with an upstream python-dns installation.
8.2 "Belle De Jour" (released 9.11.2012) 8.2 "Belle De Jour" (released 9.11.2012)

View file

@ -26,6 +26,11 @@ if not (hasattr(sys, 'version_info') or
sys.version_info < (2, 7, 2, 'final', 0)): sys.version_info < (2, 7, 2, 'final', 0)):
raise SystemExit("This program requires Python 2.7.2 or later.") raise SystemExit("This program requires Python 2.7.2 or later.")
import os import os
# add the custom linkcheck_dns directory to sys.path
_dnspath = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'linkcheck_dns'))
if _dnspath not in sys.path:
sys.path.insert(0, _dnspath)
del _dnspath
import re import re
from . import i18n from . import i18n

View file

@ -869,7 +869,7 @@ o a command line, GUI and web interface
'register': MyRegister, 'register': MyRegister,
}, },
package_dir = { package_dir = {
'dns': 'third_party/dnspython/dns', 'linkcheck_dns.dns': 'third_party/dnspython/dns',
}, },
packages = [ packages = [
'linkcheck', 'linkcheck',
@ -883,10 +883,10 @@ o a command line, GUI and web interface
'linkcheck.HtmlParser', 'linkcheck.HtmlParser',
'linkcheck.logger', 'linkcheck.logger',
'linkcheck.network', 'linkcheck.network',
'dns', 'linkcheck_dns.dns',
'dns.rdtypes', 'linkcheck_dns.dns.rdtypes',
'dns.rdtypes.ANY', 'linkcheck_dns.dns.rdtypes.ANY',
'dns.rdtypes.IN', 'linkcheck_dns.dns.rdtypes.IN',
], ],
ext_modules = [ ext_modules = [
Extension('linkcheck.HtmlParser.htmlsax', Extension('linkcheck.HtmlParser.htmlsax',